개발/Python
django, virtualenv error
Seobs
2018. 8. 10. 10:56
이슈
장고의 첫 시작으로 가상환경을 시작하려고 했는데 error가 난다.
- 에러 메세지
Using base prefix '/Users/ㅇㅇ/miniconda3'
New python executable in /Users/ㅇㅇ/ㅇㅇㅇㅇㅇㅇㅇ/django/env/bin/python
dyld: Library not loaded: @rpath/libpython3.5m.dylib
Referenced from: /Users/ㅇㅇ/ㅇㅇㅇㅇㅇㅇ/django/env/bin/python
Reason: image not found
ERROR: The executable /Users/ㅇㅇ/ㅇㅇㅇㅇㅇㅇ/django/env/bin/python is not functioning
ERROR: It thinks sys.prefix is '/Users/ㅇㅇ/ㅇㅇㅇㅇㅇㅇ/django' (should be '/Users/ㅇㅇ/ㅇㅇㅇㅇㅇㅇ/django/env')
ERROR: virtualenv is not compatible with this system or executable
해결
virtualenv를 다시 설치함으로 해결을 했는데, conda를 사용하고 있어서 삭제는 pip로, 설치는 conda로 하였다.
pip uninstall virtualenv
conda install virtualenv