PIP specifies installation of installation path in Anaconda environment _ remember

Source: Internet
Author: User

error Causes:

After the PIP installation torchtext==0.1.1 is complete, the installation path is found to. local/lib/python3.6/site-packages, but my program needs to use python2.7.

One correction:

Specify PIP installation path reinstall $ PIP Install--user--install-option= "-prefix=./.local/lib/python2.7" torchtext==0.1.1

Installation not successful

/users4/zsun/anaconda3/lib/python3.6/site-packages/pip/commands/install.py:194:userwarning:disabling all of Wheels due to the use of--build-options/--global-options/--install-options.
Cmdoptions.check_install_build_global (Options)
Requirement already satisfied:torchtext==0.1.1 In/users4/zsun/.local/lib/python3.6/site-packages
Requirement already satisfied:requests in/users4/zsun/anaconda3/lib/python3.6/site-packages (from torchtext==0.1.1)
Requirement already SATISFIED:TQDM in/users4/zsun/.local/lib/python3.6/site-packages (from torchtext==0.1.1)
Requirement already satisfied:chardet<3.1.0,>=3.0.2 in/users4/zsun/anaconda3/lib/python3.6/site-packages ( From requests->torchtext==0.1.1)
Requirement already satisfied:idna<2.7,>=2.5 in/users4/zsun/anaconda3/lib/python3.6/site-packages (from requests->torchtext==0.1.1)
Requirement already satisfied:urllib3<1.23,>=1.21.1 in/users4/zsun/anaconda3/lib/python3.6/site-packages ( From requests->torchtext==0.1.1)
Requirement already satisfied:certifi>=2017.4.17 in/users4/zsun/anaconda3/lib/python3.6/site-packages (from requests->torchtext==0.1.1)

The installation was found to be unsuccessful and an installation directory with/anaconda3/lib/python3.6/site-packages/pip/commands/install.py as Pip was found.

My anaconda is based on the Python3 installation, so next

two times correct:

Add Python2 environment to my anacoda, operation process http://www.lqkweb.com/blog.php?id=86

After installing the PY27, source activate Py27 open py27. (Close: Deactivate)

At this point Find-name python2.7 found that in addition to the necessary./.local/lib/python2.7 there are many similar./anaconda3/envs/py27/bin/python2.7.

Next retry $ pip install--user--install-option= "-prefix=./anaconda3/envs/py27/lib/python2.7" torchtext==0.1.1

The installation was successful.

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.