A mentally handicapped installed a day of the history of the tears of Python and Graphlab

Source: Internet
Author: User
Tags jupyter jupyter notebook

The approximate process is this:

First installed the python3.6.1, and then found that the wrong σ ( ̄- ̄| |), is the one-bit, unloading the reload Python 3.6.1 (64bit).

Then install Easy_install, Pip, Ipython notebook. After the arduous work to fix the Ipython notebook,

Then go to Turi download Graphlab, found that this thing requires Python 2.7 environment ... (╯° °) ╯ (┴-┴

What else can I do? only re-install python2.7 64bit,

Then directly according to Turi recommended steps, first install Anaconda, and then installed Graphlab,

finally in Ipython notebook import Graphlab ... (╯° °) ╯ (┴-┴

Summary of some of the problems encountered.

1. 32bit and 64bit installation packages.

Go to the Python website https://www.python.org/downloads/windows/

You can see a bunch of downloadable installation packages as follows.

The boxes come out of these two are 32bit .

Where is the 64bit, here.

Additional considerations for installing Python:

1. Remember to tick add to path or add the path manually after

2. Install for all users.

2. Install Easy install times wrong Typeerror:chown () missing 1 required positional argument: ' Numeric_owner '

Download Ez_setup-0.9.tar Zip package, address: Https://pypi.python.org/pypi/pip

Unzip the cmd into the appropriate directory to run the Python ez_setup.py

And then it's been an error.

Typeerror:chown () Missing 1 required positional argument: ' Numeric_owner '

Workaround:

Finding a solution in StackOverflow is to find the ez_setup.py file in the zip-up package and manually

Self.chown (Tarinfo, Dirpath)

Switch

")

Because I don't know how to open a. py file (this is the dish), I opened it with Notepad Orz

Solved the Orz

3.ipython Notebook Installation

Install PIP. Installation method: Https://pip.pypa.io/en/latest/installing.html

Then cmd runs pip install Jupyter notebook

Start Notebook:

Run Jupyter notebook in cmd,

Then the URL localhost:8888, will pop up a page for you to lose token.

It's probably like this after the Open interface.

Where are the documents in Ipython notebook?

In notebook, right up new, drag it down to Python 3, pop up a new window that you can enter, and enter

Import OS print os.getcwd ()

Run to get

The output is the address where the Ipython notebook file is stored.

Last point ... No one's going to be like me. Turn cmd off when running Ipython notebook (afraid not a retarded) ( ̄ε (# ̄) Σ

4.Anaconda Installation-Time path error

Loading python2.7

As Turi recommended Anaconda The last step is Ipython Notebook,

After you've loaded Python 2.7, whatever else you have, follow the steps of Turi directly.

Recommended Steps for Turi:

Option 1:install into Anaconda Python environment (recommended)

Step 1: Download Anaconda2 v4.0.0

Step 2: Install Anaconda

Install the progress bar to the end of the various error quq

I can't remember how many methods I've tried _ (: 3"∠) _

Run as administrator the last time you install it can resolve _ (: 3"∠) _

Step 3:create Conda Environment

Run in CMD after successful installation

# Create A new Conda environment with Python 2.7.x  -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 Conda Install pipconda update pip

Step 5:install Graphlab Create

# Install your licensed copy of Graphlab Create  --upgrade--no-cache-dir HTTPS://GET.GRAPHLAB.COM/GRAPHLAB-CREATE/2.1/registered use of the email/registration to the product Key/ 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

Don't know why step 5:install Graphlab Create is followed by step 4:ensure installation of IPython and IPython Notebook Orz

Open Ipython Notebook after all successful installations

5. Final Import Graphlab ... The heart is so tired _ (: 3"∠) _

New in Ipython notebook, then import Graphlab

It's another problem. (/tдt)/

But here are the tips, follow the steps.

The Write permission for the C:\Anaconda2\envs\gl-env\lib\site-packages\graphlab is modified as required first.

And then run
Graphlab.get_dependencies ()

Downloading XZ. Then it won't move, wait 20 minutes or so.


A bunch of errors.

Then I can only open Notepad again to try to change the program (Death throes) ...

Refer to the blog:

Http://blog.csdn.net/u013569000/article/details/53886656?locationNum=2&fps=1

The problem is simply that the problem with the network download package fails multiple times and cannot be installed completely.

The solution is to find Get_dependencies () source code, and then directly from the source to get the download URL, manual download, and then the source file location corresponding changes can be.

I tried it.

Run the program is C:\Anaconda2\envs\gl-env\Lib\site-packages\graphlab\dependencies.py, open, get the downloaded URL.

(Xzarchive_file, xzheaders) = Urllib.urlretrieve ('http://tukaani.org/xz/xz-5.2.1-windows.zip ')
(Dllarchive_file, dllheaders) = Urllib.urlretrieve ('http://repo.msys2.org/mingw/x86_64/mingw-w64-x86 _64-gcc-libs-5.1.0-1-any.pkg.tar.xz')

Downloaded two installation packages, all placed on the E-drive, and then changed the source

 33  #   ( Xzarchive_file, xzheaders) = Urllib.urlretrieve (' http://tukaani.org/xz/xz-5.2.1-windows.zip ') #注释掉  34  xzarchive_file =  " e:\\xz-5.2.1-windows.zip   " 35  #   Xzarchive_dir = Tempfile.mkdtemp ()  #注释掉   36  Xzarchive_dir =  " e:\";  
 + # (dllarchive_file, dllheaders) = Urllib.urlretrieve (' http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64- Gcc-libs-5.1.0-1-any.pkg.tar.xz ')"e:\\mingw-w64-x86_64- Gcc-libs-5.1.0-1-any.pkg.tar.xz'dllarchive_dir = tempfile.mkdtemp ()  $ ' e:\ '

Done, run.

then σ ( ̄- ̄| |)

This is why AH (/tдt)/even file read and write will be an error (╯°) ╯ (┴-┴

A different address tried, the file exists E:\python_graphlab, modify the source code

 #   (xzarchive_file, xzheaders) = Urllib.urlretrieve (' Http://tukaani.org/xz/xz-5.2.1-windows.zip ')  xzarchive_file =  " e:\python_graphlab\\xz-5.2.1-windows.zip   " #  xzarchive_dir = Tempfile.mkdtemp ()  Xzarchive_dir =  " e:\python_graphlab  ; 
# (dllarchive_file, dllheaders) = Urllib.urlretrieve (' http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64- Gcc-libs-5.1.0-1-any.pkg.tar.xz ')'E:\python_graphlab\\mingw-w64-x86_64- Gcc-libs-5.1.0-1-any.pkg.tar.xz'#dllarchive_dir = tempfile.mkdtemp ()' E:\python_graphlab '

And then... All right...

??? Some kind of metaphysical mystical power??

A mentally handicapped installed a day of the history of the tears of Python and Graphlab

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.