我现在正在处理Django项目一段时间,在项目开始时,我创建了virtualenv。我使用了this website中的方法。两个月后,当我尝试运行任何与python相关的命令时,我陷入了该错误(如下)。我不认为该错误与虚拟环境有关,因为我能够激活它。作为参考,我的垃圾箱的内容也在下面。
<!-- 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