Hello,
I am trying to install the following libraries while using Jupyter, and I have Anaconda installed in my pc.
However, when I write the below in command prompt, it says "'conda' is not recognized as an internal or external command, operable program or batch file"
Can someone please tell me how I can install these? Thank you!
conda install lxml
conda install html5lib
conda install BeautifulSoup4
conda (or pip if available) has to be run form a command line, not from within a python script.
from command line, type this command to see what's installed
conda.list
if not already in in list:
conda install lxml
conda install html5lib
conda install BeautifulSoup4
You have not Anaconda3 or conda in Windows path.
Go to your
...Anaconda3\Scripts
script folder in cmd.
G:\Anaconda3\Scripts
λ conda -V
conda 4.6.8
G:\Anaconda3\Scripts
λ pip -V
pip 18.1 from G:\Anaconda3\lib\site-packages\pip (python 3.7)
All libraries you want to install is already pre-installed.
Can try then then will conda update if needed.
G:\Anaconda3\Scripts
λ conda install lxml
Collecting package metadata: done
Solving environment: done
## Package Plan ##
environment location: G:\Anaconda3
added / updated specs:
- lxml
The following packages will be downloaded:
package | build
---------------------------|-----------------
ca-certificates-2018.03.07 | 0 155 KB
certifi-2018.11.29 | py37_0 146 KB
conda-4.6.8 | py37_0 1.7 MB
openssl-1.1.1a | he774522_0 5.7 MB
------------------------------------------------------------
Total: 7.7 MB
The following packages will be UPDATED:
conda anaconda::conda-4.6.2-py37_0 --> pkgs/main::conda-4.6.8-py37_0
The following packages will be SUPERSEDED by a higher-priority channel:
ca-certificates anaconda --> pkgs/main
certifi anaconda --> pkgs/main
openssl anaconda --> pkgs/main
Proceed ([y]/n)? y
Downloading and Extracting Packages
ca-certificates-2018 | 155 KB | ################################################################### | 100%
openssl-1.1.1a | 5.7 MB | ################################################################### | 100%
certifi-2018.11.29 | 146 KB | ################################################################### | 100%
conda-4.6.8 | 1.7 MB | ################################################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
You can add Anaconda3 to Windows Path if it's your main Python version.
Look at
Fixing Path if needed.
Then for me it would be.
G:\Anaconda3
G:\Anaconda3\Scripts
Restart Pc.
Now will
conda
and
pip
work from anywhere in cmd(or much better
cmder) and using Anaconda3.
Anaconda and other ways to run Python
Thank you for the help! I realized I don't have access to installing packages on my work PC. I am working on this first, then I will be able to follow your recommendations. Thanks again!