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.