pip3.7 install报错bad interpreter: No such file or directory
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了pip3.7 install报错bad interpreter: No such file or directory相关的知识,希望对你有一定的参考价值。
参考技术A 执行 pip3.7 install uwsgi出现如下报错查看pip3.7所在路径
查看此命令的引用,做了/usr/local/python3.7/bin/pip3.7路径软连接
vim 查看此脚本,发现此脚本引用了/usr/local/python3.7.0/bin/python3.7路径
ls /usr/local/python3.7.0/bin/python* 查看,发现此路径下没有python3.7.0文件夹
所以此问题出现的原因为python版本中间编译过多次,python3.7.0脚本被修改了名称,解决方法如下
将执行文件路径修改为python3.7
再次执行命令,问题解决
微信公众号关注“运维之美”
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】有关吗?
怎么设置一下?
以上是关于pip3.7 install报错bad interpreter: No such file or directory的主要内容,如果未能解决你的问题,请参考以下文章
-bash: ./scripts/mysql_install_db: /usr/bin/perl: bad interpreter: No such file
-bash: /usr/local/mysql/scripts/mysql_install_db: /usr/bin/perl: bad interpreter: No such file or di
inter x86 emulator accelerator(HAXM installer) not compatible with windows
mybatis报错Mapped Statements collection does not contain value for com.inter.IOper