我不知道是什么导致了这个问题,我已经尝试从头开始卸载并重新安装所有东西,但经过两天的尝试,我仍然无法解决这个问题。我真的可以使用一些专家的帮助。
我在这里错过了一些基本的东西吗?
在我的桌面上我运行的是 Windows 10,在我的笔记本电脑上我运行的是 Windows 7(专业版,SP1)。
在桌面上,I pipenv
toinstall django==1.11
和pip freeze
显示django==1.11
列出。在我的笔记本电脑上,使用pipenv
to install django==1.10
,但pip freeze
不列出 django。当我检查pipfile.lock时,我看到 django 列在那里。
这是我笔记本电脑的日志,这样你就可以看到我使用过的所有命令(以防我错过了一个):
PS C:\Project> pipenv install django==1.11
Creating a virtualenv for this project.
Using C:\Python27\python.exe to create virtualenv.
Running virtualenv with interpreter C:\Python27\python.exe
New python executable in C:\Project\Scri...
xe
Installing setuptools, pip, wheel...done.
Virtualenv location: C:\Project\
Installing django==1.10.
Collecting django==1.10
Using cached Django-1.10-py2.py3-none-any.whl
Installing collected packages: django
Successfully installed django-1.10
Adding django==1.10 to Pipfile's [packages]
Locking [dev-packages] dependencies.
Locking [packages] dependencies.
Updated Pipfile.lock (93acb4)!
PS C:\Projects> 猫 pipfile
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"
[dev-packages]
[packages]
django = "==1.10"
PS C:\Project> cat pipfile.lock
{
"_meta": {
"hash": {
"sha256": "92bc94ea06d9cf8e2f7b9ed1628d1036db1bce0bb20f920009e9f6dba093acb4"
},
"host-environment-markers": {
"implementation_name": "cpython",
"implementation_version": "0",
"os_name": "nt",
"platform_machine": "AMD64",
"platform_python_implementation": "CPython",
"platform_release": "7",
"platform_system": "Windows",
"platform_version": "6.1.7601",
"python_full_version": "2.7.14",
"python_version": "2.7",
"sys_platform": "win32"
},
"pipfile-spec": 6,
"requires": {},
"sources": [
{
"name": "pypi",
"url": "https://pypi.python.org/simple",
"verify_ssl": true
}
]
},
"default": {
"django": {
"hashes": [
"sha256:9c60f4a801bf7c26bd6824c1062550c12c373344116703461c18cc258f8c9320",
"sha256:46b868d68e5fd69dd9e05a0a7900df91786097e30b2aa6f065dd7fa3b22f7005"
],
"version": "==1.10"
}
},
"develop": {}
}
PS C:\Project> 点冻结
backports.shutil-get-terminal-size==1.0.0
certifi==2018.1.18
chardet==3.0.4
configparser==3.5.0
enum34==1.1.6
flake8==3.5.0
idna==2.6
mccabe==0.6.1
pathlib==1.0.1
pew==1.1.2
pipenv==9.0.3
psutil==5.3.1
pycodestyle==2.3.1
pyflakes==1.6.0
requests==2.18.4
shutilwhich==1.1.0
urllib3==1.22
virtualenv==15.1.0
virtualenv-clone==0.2.6
PS C:\Project> django-admin 启动项目项目
The term 'django-admin' is not recognized as the name of a cmdlet, function, script file, or operable program. Check th
e spelling of the name, or if a path was included, verify that the path is correct and try again.
我尝试禁用 Avast(每当我安装新软件包时,它都会弹出“在我们扫描时等待”通知)
我确实Using cached Django-1.10-py2.py3-none-any.whl
在日志的开头注意到了 - 我应该尝试清除缓存(以防该包损坏)并重试吗?
我在做傻事吗?如果没有,我该如何找出问题所在以便解决它?