REQUEST库安装问题
想用request库,但是现在出了点问题PS C:\Program Files\Python36\Scripts> pip install requests
Fatal error in launcher: Unable to create process using '"c:\program files\python39\python.exe""C:\Program Files\Python39\Scripts\pip.exe" install requests': ???????????
求大佬解答 感觉你是用了 cd
不用 cd 直接输入就行了 嘉岳呀 发表于 2021-10-27 12:26
感觉你是用了 cd
不用 cd 直接输入就行了
没有用cd,我在py文件夹打开的命令面板,不用cd直接打开也是这样 华文杉 发表于 2021-10-27 12:34
没有用cd,我在py文件夹打开的命令面板,不用cd直接打开也是这样
你直接运行 cmd 就行了 你到Python36目录下调用Python39,可能搞混乱了。 hrpzcf 发表于 2021-10-27 15:06
你到Python36目录下调用Python39,可能搞混乱了。
好,晚上我试试 本帖最后由 hrpzcf 于 2021-10-27 15:45 编辑
华文杉 发表于 2021-10-27 15:28
好,晚上我试试
如果你想安装到py36的话,可以这样:
在任意位置打开cmd,输入命令
C:\Program Files\Python36\python.exe -m pip install requests -i https://pypi.tuna.tsinghua.edu.cn/simple
py39同理
或者把环境变量中py36的2个路径移到py39前面,pip命令就默认是py36的 hrpzcf 发表于 2021-10-27 15:41
如果你想安装到py36的话,可以这样:
在任意位置打开cmd,输入命令
还是不行,ollecting requests
Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/requests/: There was a problem confirming the ssl certificate: certificate verify failed (_ssl.c:749) - skipping
Could not find a version that satisfies the requirement requests (from versions: )
No matching distribution found for requests
You are using pip version 9.0.1, however version 21.3.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command. hrpzcf 发表于 2021-10-27 15:41
如果你想安装到py36的话,可以这样:
在任意位置打开cmd,输入命令
我在39上也是显示这个Fatal error in launcher: Unable to create process using '"c:\program files\python39\python.exe""C:\Program Files\Python39\Scripts\pip.exe" install requests': ???????????
华文杉 发表于 2021-10-27 17:58
我在39上也是显示这个
你的python安装目录是不是手动移动过位置,重新安装吧 hrpzcf 发表于 2021-10-27 19:06
你的python安装目录是不是手动移动过位置,重新安装吧
没有啊,明天我试试 嘉岳呀 发表于 2021-10-27 13:40
你直接运行 cmd 就行了
不行用不了 hrpzcf 发表于 2021-10-27 19:06
你的python安装目录是不是手动移动过位置,重新安装吧
重装了还是用不了 华文杉 发表于 2021-10-28 12:39
重装了还是用不了
试试管理员权限打开cmd? hrpzcf 发表于 2021-10-28 13:17
试试管理员权限打开cmd?
试过了,也不行 装个anaconda吧,那里面自带requests模块,也带编辑器{:10_256:}
页:
[1]