Chatterbot Error While installing it using pip in python [Windows].
There are many kinds of error occurred while installing the chatterbot in python in which we see some possibilities of solving error technique. Most probably the errors will be shown on the command prompt, read the errors carefully so that we can get the solution easily from it.
Most common errors occur while installing chatterbot:
Python and Pip
Before going into that check your python version as well as pip version on windows using these commands
>>python
>>python --version
or
>>py --verison
And try pip version using
>>pip --version
Virtual environment or virtualenv -is a tool that creates an environment for python which is used for the execution of packages need for the python program.
#Install >>py -m pip install --user virtualenv #Create a folder for env >>py -m venv env #To activate env >>env\Scripts\activate #To deactivate >>deactivate
After that, some chatterbot package will run using Flask, Django, Conda, Panda whatever your python code needs you may go for that.
And before that, some dependencies will be installed automatically with python but some not so you need to manually download the packages from Unofficial windows binaries for python.
The most common packages need for chatterbot is spacy, preshed, murmurhash, blis, nltk most propably this will automatically be installed if not you need to manually install or update that using these commands
>>pip install <package downloaded> #ends with .whl formate >>pip install --upgrade <package name> #if already package is installed

Environment Variables Path
* And most important thing some systems may run two types of python versions simultaneously because in some systems python comes with the old version and when you install a new version of python you need to make that python version the default one.
- Search for environment variables it is in the control panel you may see there - Edit System Environment variables-.
-Then select the Environment variables button and choose a select path in user variables for "admin_name" and click edit
-And you can create a new path or edit the old path where the new version of python is located in your system.
so, now you made the default python version on your system.
Error: Microsoft Visual C++ Build Tools
Some Tips:
>>pip install chatterbot=1.0.4
0 Comments
Thanks for commenting!
Don't post spam comments...