pip install报错,“Consider using the `--user` option or check the permissions”

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了pip install报错,“Consider using the `--user` option or check the permissions”相关的知识,希望对你有一定的参考价值。

参考技术A 在使用pip install时,提示pip的版本过低,需要更新的时候提示:

按照提示输入:

但是报错: Consider using the `--user` option or check the permissions.
换成下面的命令完美解决

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】有关吗?

怎么设置一下?

参考技术B 我也是这个错误😭请问解决了吗 参考技术C 你好,请问解决了吗?我也遇到了这个问题,寻求方法。

以上是关于pip install报错,“Consider using the `--user` option or check the permissions”的主要内容,如果未能解决你的问题,请参考以下文章

python 的pip install 安装包报错。

Python用pip install安装Scipy报错

pip install -U selenium 报错为啥呢?

python -m pip install --upgrade pip 更新一直报错

python pip install XXX出现报错问题

pip3.7 install报错bad interpreter: No such file or directory