0

我现在正在使用 Django 项目一段时间,在项目开始时,我创建了一个 virtualenv。我使用了这个网站的方法。两个月后,当我尝试运行任何与 python 相关的命令时,我遇到了这个错误(如下)。我不相信错误与虚拟环境有关,因为我能够激活它。作为参考,我的bin的内容也在下面。

<!-- Error from the terminal -->
(command) python manage.py runserver
dyld: Library not loaded: @executable_path/../.Python
Referenced from: /Users/UzairVawda/Sites/DragonFeed/bin/python
Reason: image not found
[1]    87972 abort      python manage.py runserver

(command) python
dyld: Library not loaded: @executable_path/../.Python
Referenced from: /Users/UzairVawda/Sites/DragonFeed/bin/python
Reason: image not found
[1]    87891 abort      python

<!-- Content of my bin-->
total 176
drwxrwxrwx  3 UzairVawda  staff     96 Jul  2 10:16 __pycache__
-rwxrwxrwx  1 UzairVawda  staff   2093 Apr 12 11:46 activate
-rwxrwxrwx  1 UzairVawda  staff   1035 Apr 12 11:46 activate.csh
-rwxrwxrwx  1 UzairVawda  staff   2189 Apr 12 11:46 activate.fish
-rwxrwxrwx  1 UzairVawda  staff   1137 Apr 12 11:46 activate_this.py
-rwxrwxrwx  1 UzairVawda  staff    297 Apr 12 11:47 django-admin
-rwxrwxrwx  1 UzairVawda  staff    155 Apr 12 11:47 django-admin.py
-rwxrwxrwx  1 UzairVawda  staff    264 Apr 12 11:46 easy_install
-rwxrwxrwx  1 UzairVawda  staff    264 Apr 12 11:46 easy_install-3.6
-rwxrwxrwx  1 UzairVawda  staff    251 Apr 12 12:12 gunicorn
-rwxrwxrwx  1 UzairVawda  staff    253 Apr 12 12:12 gunicorn_paster
-rwxrwxrwx  1 UzairVawda  staff    236 Apr 12 11:46 pip
-rwxrwxrwx  1 UzairVawda  staff    236 Apr 12 11:46 pip3
-rwxrwxrwx  1 UzairVawda  staff    236 Apr 12 11:46 pip3.6
lrwxrwxrwx  1 UzairVawda  staff      7 Jul  2 10:13 python -> python3
-rwxrwxrwx  1 UzairVawda  staff   2352 Apr 12 11:46 python-config
-rwxrwxrwx  1 UzairVawda  staff  25464 Apr 12 11:46 python3
lrwxrwxrwx  1 UzairVawda  staff      7 Jul  2 10:13 python3.6 -> python3
-rwxrwxrwx  1 UzairVawda  staff    243 Apr 12 11:46 wheel
4

0 回答 0