Python 下载时出现命令错误';主要';模块
遇到此问题时,我尝试从命令提示符和PowerShell下载“main”模块。但是,显示了相同的错误结果。我怎样才能解决这个问题?这是错误消息:Python 下载时出现命令错误';主要';模块,python,Python,遇到此问题时,我尝试从命令提示符和PowerShell下载“main”模块。但是,显示了相同的错误结果。我怎样才能解决这个问题?这是错误消息: Collecting main Using cached https://files.pythonhosted.org/packages/1c/f4/445fbd86d9ebd133a03a263482f72dd539ccc90a0c29693222903e5e145e/main-0.1.tar.gz Installing collected pac
Collecting main
Using cached https://files.pythonhosted.org/packages/1c/f4/445fbd86d9ebd133a03a263482f72dd539ccc90a0c29693222903e5e145e/main-0.1.tar.gz
Installing collected packages: main
Running setup.py install for main ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Python 3.8.1\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\asuit\\AppData\\Local\\Temp\\pip-install-9tqrshss\\main\\setup.py'"'"'; __file__='"'"'C:\\Users\\asuit\\AppData\\Local\\Temp\\pip-install-9tqrshss\\main\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\asuit\AppData\Local\Temp\pip-record-oc5gc9jc\install-record.txt' --single-version-externally-managed --compile --user --prefix=
cwd: C:\Users\asuit\AppData\Local\Temp\pip-install-9tqrshss\main\
Complete output (6 lines):
running install
running build
running build_scripts
creating build
creating build\scripts-3.8
error: file 'C:\Users\asuit\AppData\Local\Temp\pip-install-9tqrshss\main\main' does not exist
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Python 3.8.1\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\asuit\\AppData\\Local\\Temp\\pip-install-9tqrshss\\main\\setup.py'"'"'; __file__='"'"'C:\\Users\\asuit\\AppData\\Local\\Temp\\pip-install-9tqrshss\\main\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\asuit\AppData\Local\Temp\pip-record-oc5gc9jc\install-record.txt' --single-version-externally-managed --compile --user --prefix= Check the logs for full command output.
我使用的pip命令是python-m pip install--user main用于命令提示符,pip install main用于Windows PowerShell欢迎使用堆栈溢出
文件'C:\Users\asuit\AppData\Local\Temp\pip-install-9tqrshss\main\main'不存在
表示不存在请发布您使用的完整pip install
命令行。当我检查了项目的venv文件,主模块在那里,但是当我在IDE中单击安装模块时,它说通过命令下载