Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

pip - Python 3.8 Module not found error after having it installed in the command line

I am using python 3.8.3 version. I installed folium typing pip install folium in the command line. After typing pip show folium in the command line, the output is as follows:

Name: folium
Version: 0.12.1
Summary: Make beautiful maps with Leaflet.js & Python
Home-page: https://github.com/python-visualization/folium
Author: Rob Story
Author-email: [email protected]
License: MIT
Location: c:userskoryunappdatalocalprogramspythonpython38-32libsite-packages
Requires: requests, jinja2, branca, numpy
Required-by:

When I type import folium in VS code, I get an ModuleNotFoundError: No module named 'folium' error. What can I do to solve this issue?

question from:https://stackoverflow.com/questions/65919766/python-3-8-module-not-found-error-after-having-it-installed-in-the-command-line

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Your package seems to be installed in c:userskoryunappdatalocalprogramspythonpython38-32libsite-packages.

Check out where is your Python looking for installed packages by running this Python program:

import sys
print(sys.path)

If there is not aforementioned path present, then you have to add it, for VS code it is described here: https://code.visualstudio.com/docs/python/environments


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...