简体   繁体   English

pip3 在 mac os 上安装不工作 - 需要帮助进行故障排除

[英]pip3 install on mac os not working - need help troubleshooting

I am trying to run the pip command and install a dependency on mac os but I am just getting an error message that looks like this我正在尝试运行 pip 命令并在 mac os 上安装依赖项,但我只是收到如下所示的错误消息

Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

I added a picture below to best understand.我在下面添加了一张图片以便最好地理解。 Can anyone help me figure this out?谁能帮我解决这个问题?

I also tried reinstalling python and that didnt work either - I just keep getting the same message我也尝试重新安装 python 但这也没有用 - 我只是不断收到相同的消息

I also tried pip3 and I get the same error我也试过 pip3,我得到了同样的错误

You can try using python -m ensurepip您可以尝试使用python -m ensurepip

If that doesn't work, try installing openSSL , and only if that still doesn't work, do ./configure -–with-openssl=/home/username/openssl and then python3 -m ssl .如果这不起作用,请尝试安装openSSL ,只有当仍然不起作用时,才执行./configure -–with-openssl=/home/username/openssl然后python3 -m ssl

try this pip3 install ddtrace试试这个 pip3 安装 ddtrace

MacOS is different according to windows. MacOS uses pip macOS根据windows不同,macOS使用pip

on Mac you have to use pip3在 Mac 上你必须使用pip3

pip is for Windows pip代表 Windows

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM