简体   繁体   中英

How change python module path?

I want to use the Scrapy Python module and because I have anaconda installed, scrapy is installed. However, I don't want to use the anaconda environment I want to use VSCode. I type "pip install scrapy" but it returns "Requirement already satisfied". How do I change the path way of this module because I can't run Scrapy in VSCode.

It gives me a "report missing imports" error but I already have it installed.

I already tried to uninstall and reinstall but that didn't work.

Python allows you to modify the module search path at runtime by modifying the sys.path variable. This allows you to store module files in any folder of your choice. Since the sys.path is a list, you can append a search-path to it.

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