Can';t使用Ubuntu16.04和anaconda安装gensim
我正在尝试安装python包(gensim),但没有成功Can';t使用Ubuntu16.04和anaconda安装gensim,ubuntu,ssl,anaconda,gensim,python-3.6,Ubuntu,Ssl,Anaconda,Gensim,Python 3.6,我正在尝试安装python包(gensim),但没有成功 首先,我按照的指示(包括尝试安装前的更新),输入 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 -- So
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')
conda install -c anaconda gensim=1.0.1
如前所述,我得到了
我也犯了类似的错误
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.
PYTHONUSERBASE=/home/usr/anaconda3 pip3 install --user --upgrade gensim
虽然我的默认python是python3.6,但它能够安装gensim软件包,但位于新创建的文件夹/home/usr/anaconda3/python3.5
下另外,我不明白为什么它坚持在python3.5下安装,而用户说该软件包也与python3.6兼容。首先,您需要安装openssl:
sudo apt安装openssl
如果从源代码安装python,则必须:
./configure
make
sudo checkinstall
首先,您需要安装openssl:
sudo apt安装openssl
如果从源代码安装python,则必须:
./configure
make
sudo checkinstall
谢谢你的提示。我已经有了openssl,但我不明白
/configure
(我没有找到任何同名的文件/文件夹)的含义是什么,你为什么要自己编译python?为什么不使用预编译的呢?谢谢你的提示。我已经有了openssl,但我不明白/configure
(我没有找到任何同名的文件/文件夹)的含义是什么,你为什么要自己编译python?为什么不使用预编译的?
PYTHONUSERBASE=/home/usr/anaconda3 pip3 install --user --upgrade gensim
./configure
make
sudo checkinstall