我安装了python 2.7,然后通过pip通过django。无法导入django
C:\WINDOWS\system32>pip install Django
You are using pip version 6.0.8, however version 6.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting Django
Downloading Django-1.8-py2.py3-none-any.whl (6.2MB)
100% |################################| 6.2MB 79kB/s
Installing collected packages: Django
Successfully installed Django-1.8
C:\WINDOWS\system32>
现在当我尝试导入django时没有任何可能。
>>> import django
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named django
>>>
可以做些什么呢?我尝试重新安装点子,然后突然再也没有可能。
C:\Users\cleanup\Downloads>python get-pip.py
Collecting pip
Downloading pip-6.1.1-py2.py3-none-any.whl (1.1MB)
100% |################################| 1.1MB 335kB/s
Installing collected packages: pip
Found existing installation: pip 1.5.4
Uninstalling pip-1.5.4:
Successfully uninstalled pip-1.5.4
Successfully installed pip-1.5.6
C:\Users\cleanup\Downloads>pip list
'pip' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\cleanup\Downloads>python pip list
python: can't open file 'pip': [Errno 2] No such file or directory
C:\Users\cleanup\Downloads>
你看到什么,当你'点子列表'? – rnevius
我想我必须重新安装。什么都不可能。我甚至不能使用点子。我从广告管理员提示中成功安装了django。我使用之前安装的结果更新了问题。 – Montao
看起来pip附加到您尝试导入django的那个python解释器。 – madzohan