我正在远程服务器上工作。当我尝试在虚拟环境中使用pip安装任何东西时,会出现错误:
(venv) [barta@bivoj program]$ pip install -r requirements.txt
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting joblib==0.11 (from -r requirements.txt (line 1))
Could not fetch URL https://pypi.python.org/simple/joblib/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
Python 2.7运行良好,我没有root访问权限,我能自己解决这个问题吗?还是需要联系管理员?
当我在我的主目录中安装Python 3.6时,首先遇到了这个问题。我认为问题可能是因为它在我的主目录中,所以我请求干净地安装Python 3.6。
我考虑修改setup.py并在我的主目录中重新安装,正如Claudio在这里建议的那样:
pip3 installs inside virtual environment with python3.6 failing due to ssl module not available
但我没有找到任何openssl文件夹。 /usr/bin中有openssl,但那不是一个目录。我搜索了ssl.h文件,但没有在任何地方找到它。