我无法使用包解析。
找不到模块parse_rest.connection。 我使用pip install parse-rest安装它。 你能告诉我什么是遗失的吗! 看着H:\ py_env \安装了我的virtualenv,它不存在。
ImportError at /
No module named parse_rest.connection
Request Method: GET
Request URL: local
Django Version: 1.7.1
Exception Type: ImportError
Exception Value:
No module named parse_rest.connection
Exception Location: H:\py_env\src\propiedades\models.py in <module>, line 6
Python Executable: C:\Python27\python.exe
Python Version: 2.7.8
Python Path:
['H:\\py_env\\src', ...]
********************************************
(py_env) H:\py_env>pip install parse_rest
Downloading/unpacking parse-rest
Downloading parse_rest-0.10.2013.tar.gz
Running setup.py (path:H:\py_env\build\parse-rest\setup.py) egg_info for package parse-rest
Installing collected packages: parse-rest
Running setup.py install for parse-rest
Successfully installed parse-rest
Cleaning up...
(py_env) H:\py_env>pip freeze
Django==1.7.1
parse-rest==0.10.2013
(py_env) H:\py_env>pip show --files parse_rest
(py_env) H:\py_env>pip show --files parse-rest
---
Name: parse-rest
Version: 0.10.2013
Location: h:\py_env\lib\site-packages
Requires:
Files:
..\parse_rest\installation.py
..\parse_rest\query.py
..\parse_rest\settings_local.py
..\parse_rest\tests.py
..\parse_rest\__init__.py
..\parse_rest\installation.pyc
..\parse_rest\query.pyc
..\parse_rest\settings_local.pyc
..\parse_rest\tests.pyc
..\parse_rest\__init__.pyc
.\
dependency_links.txt
PKG-INFO
SOURCES.txt
top_level.txt
(py_env) H:\py_env>
答案 0 :(得分:0)
我正在运行&#34; manage.py runserver&#34;而不是&#34; python manage.py runsever&#34;它运行位于c:\ file中的默认Python,而不是virtualenv。