1. 程式人生 > >安裝graphlab 報錯 No matching distribution found for graphlab-create>=2.1

安裝graphlab 報錯 No matching distribution found for graphlab-create>=2.1

異常記錄

在安裝graphlab 的過程中,發現如下錯誤

Could not find a version that satisfies the requirement graphlab-create>=2.1 (from GraphLab-Create-License==2.1) (from versions: )
No matching distribution found for graphlab-create>=2.1 (from GraphLab-Create-License==2.1)

異常原因

翻閱官方文件找到這麼一句話

Option 2: Install in Python environment using virtualenv

The below instructions assume an existing Python 2.7.x (64-bit) environment and virtualenv is already installed on your machine. GraphLab Create installation requires pip version >= 7. IPython Notebook is recommended for getting the most out our code samples.

好了,知道問題所在了

graphlab要求python 2.7的環境。

解決辦法,如果你安裝的是 anaconda

重新設定一下python2.7

在這裡插入圖片描述

開啟你郵箱中的那封安裝郵件,然後按照流程安裝即可

在這裡插入圖片描述

Step 1: Download Anaconda2 v4.0.0

Step 2: Install Anaconda

# Run Anaconda2 v4.0.0 installer.
# Double-click the .exe file to install Anaconda and follow the instructions on the screen.
Step 3: Create conda environment

# Create a new conda environment with Python 2.7.x
conda create -n gl-env python=2.7 anaconda=4.0.0 # Activate the conda environment activate gl-env Step 4: Ensure pip version >= 7 # Ensure pip is updated to the latest version # miniconda users may need to install pip first, using 'conda install pip' conda update pip Step 5: Install GraphLab Create # Install your licensed copy of GraphLab Create pip install --upgrade --no-cache-dir https://get.graphlab.com/GraphLab-Create/2.1/你的郵箱/郵箱收到的安裝碼/GraphLab-Create-License.tar.gz Step 4: Ensure installation of IPython and IPython Notebook # Install or update IPython and IPython Notebook conda install ipython-notebook

上述命令中,也可以在軟體直接操作,記得切換一下python環境 activate gl-env

然後使用pip進行安裝
在這裡插入圖片描述