简体   繁体   中英

Installing packages using anaconda

I am trying to install scrapy and pandas using anaconda on my windows computer, but I am running into issues. I am sure I installed both packages correctly. I tried using both the anaconda navigator, pip, and a conda command. These do successfully install in my environment, as I can see these in my installed packages in anaconda. However, when I try running a simple scraping script, I get a ModuleNotFoundErrors for every package. I think it may have to do with the versions of python I have installed, but I'm not sure. I have python 3.8 installed.

When using anaconda, you will need to create an environment:

conda create -n <given name> python=3.7

then activate the environment:

source activate <given name>

Now go ahead and install packages using pip.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM