pip install url安装报错,求解决办法
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了pip install url安装报错,求解决办法相关的知识,希望对你有一定的参考价值。
Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'C:\Users\win10\PycharmProjects\test\venv\Scripts\python.exe'.Collecting url Using cached url-0.4.2.tar.gz (140 kB)Requirement already satisfied: six in c:\users\win10\pycharmprojects\test\venv\lib\site-packages (from url) (1.15.0)Using legacy 'setup.py install' for url, since package 'wheel' is not installed.Installing collected packages: url Running setup.py install for url: started Running setup.py install for url: finished with status 'error'DEPRECATION: The -b/--build/--build-dir/--build-directory option is deprecated. pip 20.3 will remove support for this functionality. A possible replacement is use the TMPDIR/TEMP/TMP environment variable, possibly combined with --no-clean. You can find discussion regarding this at https://github.com/pypa/pip/issues/8333. ERROR: Command errored out with exit status 1: command: 'C:\Users\win10\PycharmProjects\test\venv\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\win10\\AppData\\Local\\Temp\\pycharm-packaging\\url\\setup.py'"'"'; __file__='"'"'C:\\Users\\win10\\AppData\\Local\\Temp\\pycharm-packaging\\url\\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\win10\AppData\Local\Temp\pip-record-19l62mwn\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\win10\PycharmProjects\test\venv\include\site\python3.8\url' cwd: C:\Users\win10\AppData\Local\Temp\pycharm-packaging\url\ Complete output (15 lines): Building from C++ running install running build running build_py creating build creating build\lib.win32-3.8 creating build\lib.win32-3.8\url copying url\__init__.py -> build\lib.win32-3.8\url creating build\lib.win32-3.8\url\psl copying url\psl\2016-08-16.psl -> build\lib.win32-3.8\url\psl warning: build_py: byte-compiling is disabled, skipping. running build_ext building 'url.url' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ ----------------------------------------
参考技术A 你好选择
Pycharm > file > settings > project > project interpreter.
你看看有没有另一个解释器,使用它试试追问
跟安装了【Microsoft Visual Studio 2019】有关吗?
怎么设置一下?
安装升级pip,但是python -m pip install --upgrade pip报错
安装、升级pip,但是python -m pip install --upgrade pip报错
在anaconda下载pandas出现如下提示:
但是按照要求敲入‘python -m pip install --upgrade pip’,提示安装失败。
解决办法:
在python目录中删除pip-20.0.2.dist-info文件夹:
就欧克了。
以上是关于pip install url安装报错,求解决办法的主要内容,如果未能解决你的问题,请参考以下文章
安装升级pip,但是python -m pip install --upgrade pip报错
安装升级pip,但是python -m pip install --upgrade pip报错
Python pip install 安装包报错ERROR: Could not find a version that satisfies the requirement XXX解决方法