简体   繁体   中英

Problems when installing gensim on Ubuntu

I have been trying to install gensim using the following command:

pip install --upgrade gensim

I got the following error messages:

Downloading/unpacking gensim
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement gensim
Cleaning up...
No distributions at all found for gensim
Storing debug log for failure in /home/users/.pip/pip.log

How can I fix this problem?

Here is the version of Ubuntu, which is installed on Windows through VmWare

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.1 LTS
Release:    14.04
Codename:   trusty

I believe you're having a problem with pip -- the following post should fix your problem. I'm running 14.04 and the version of pip is 1.5.4, which is what Aron was running (and probably what you have).

His fix was to remove pip and install the current version using

easy_install pip==1.2.1

I would also recommend making sure all of your packages are up to date -- I haven't had this problem and as I said, am running the same version you are.

His answer in detail is:

pip connection failure: cannot fetch index base URL http://pypi.python.org/simple/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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