Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Can';t使用Ubuntu16.04和anaconda安装gensim_Ubuntu_Ssl_Anaconda_Gensim_Python 3.6 - Fatal编程技术网

Can';t使用Ubuntu16.04和anaconda安装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

我正在尝试安装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 -- 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
    
    如前所述,我得到了

    我也犯了类似的错误

    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

  • 结论(?)

    从中我了解到,我的Python可能没有使用SSL支持进行编译,如果我解决了这个问题,我可能能够赢得这场漫长的战斗。但我不明白我该怎么解决这个问题:


    另外,我不明白为什么它坚持在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