Installing Rasa and Spacy (alongside Anaconda)


First, we are going to create a Conda environment:

(base) C:\Users\ashish\Desktop>conda create -n env_py_36 python=3.6

Solving environment: done

## Package Plan ##

environment location: C:\Users\ashish\AppData\Local\Continuum\anaconda3\envs\env_py_36

added / updated specs:

- python=3.6

Downloading and Extracting Packages

python-3.6.8 | 20.3 MB

...

...

Preparing transaction: done

Verifying transaction: done

Executing transaction: done

#

# To activate this environment, use

# $ conda activate env_py_36

#

# To deactivate an active environment, use

# $ conda deactivate

#

# To list all the environments (active environment is marked with an *):

# (base) C:\Users\ashish>conda info -e

# conda environments:

# base * C:\Users\ashish\AppData\Local\Continuum\anaconda3

# env_py_36 C:\Users\ashish\AppData\Local\Continuum\anaconda3\envs\env_py_36

=================================================

Note: Rasa-core requires a package "Twisted" and Twisted requires "Microsoft Visual C++ 14.0", otherwise it will fail to install. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/"

To install Rasa and Spacy, fire these two "pip" commands:

pip install rasa-core

pip install spacy

=================================================

Note: If you are getting network errors while downloading a package using "pip" command, then you can directly download the required package matching with your Python version from this URL: https://files.pythonhosted.org/

(env_py_36) C:\Users\ashish\Desktop>pip install klein

Collecting klein

Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /packages/8a/6b/adc97a7bb3fb781fdd9e49177ad873c1479f87b9745271cbeda81cbb9cc8/klein-17.10.0-py2.py3-none-any.whl

Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/8a/6b/adc97a7bb3fb781fdd9e49177ad873c1479f87b9745271cbeda81cbb9cc8/klein-17.10.0-py2.py3-none-any.whl (Caused by ProxyError('Cannot connect to proxy.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)))

=================================================

Tip: To avoid typing "pip install" again and again in the prompt while installing a packages using WHL files, you can create a command alias in Windows Command Prompt as follows:

(env_py_36) C:\Users\ashish\Desktop>doskey pi=pip install $*

(env_py_36) C:\Users\ashish\Desktop>pi incremental-17.5.0-py2.py3-none-any.whl

Processing c:\users\ashish\desktop\incremental-17.5.0-py2.py3-none-any.whl

Installing collected packages: incremental

Successfully installed incremental-17.5.0

=================================================

No comments:

Post a Comment