1
我想,不幸的是,安装python软件包(gensim)。无法安装gensim与Ubuntu16.04和anaconda
System details:
I am using Python 3.6.0 :: Anaconda custom (64-bit) with Ubuntu16.04LTS.
首先,我遵循的方向从here,我进入
easy_install --upgrade gensim
(包括更新尝试安装之前)并得到了以下错误按摩:
Searching for gensim Reading https://pypi.python.org/simple/gensim/ Download error on https://pypi.python.org/simple/gensim/: unknown urltype: https -- Some packages may not be found! Couldn't find index page for 'gensim' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading https://pypi.python.org/simple/ Download error on https://pypi.python.org/simple/: unknown url type:https -- Some packages may not be found! No local packages or working download links found for gensim error: Could not find suitable distribution for Requirement.parse('gensim')
当我尝试使用anaconda安装时,
conda install -c anaconda gensim=1.0.1
如上所述here,我得到
Fetching package metadata ... CondaHTTPError: HTTP None None for url <https://conda.anaconda.org/anaconda/linux-64/repodata.json> Elapsed: None An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry will get you on your way. SSLError(SSLError("Can't connect to HTTPS URL because the SSL module is not available.",),)
当我试图直接从GIT中安装
pip install https://github.com/RaRe-Technologies/gensim.git
我得到一个类似的错误
SSLError("Can't connect to HTTPS URL because the SSLpip._vendor.requests.packages.urllib3.exceptions.SSLError: Can't connect to HTTPS URL because the SSL module is not available.
我试图通过usi来解决这个问题NG
PYTHONUSERBASE=/home/usr/anaconda3 pip3 install --user --upgrade gensim
这是能够安装gensim包,而是新创建的文件夹
/home/usr/anaconda3/python3.5
即使我的默认的Python是python3.6
结论下(?):
从this我明白,可能我的Python没有编译SSL支持,如果我解决这个问题,我可能能够赢得这场漫长的战斗。但我不明白我该如何解决这个D_:
PLUS,我不明白为什么它坚持要在python3.5下安装,当manual表示该软件包也与python3.6兼容。
谢谢你的提示。我已经有了openssl,但是我不知道'./configure'的含义(我没有找到这个名字的任何文件/文件夹) – DalyaG
为什么你想自己编译python?为什么你不使用预编译的? –