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?爲什麼你不使用預編譯的? –