简体   繁体   中英

ModuleNotFoundError: No module named 'seaborn'. How to redirect path in Python to capture libraries?

on a Mac, I have pip3'd installed a few libraries in python. When I try to 'import', for example, seaborn, I receive a "module not found error." How can connect to the proper path? What is the "PATH" referred to in screenshot? 在此处输入图片说明

the issues appears to be synching library with proper path. Already installed libraries, but they will NOT import under python import command, says the following在此处输入图片说明

PATH is the environment variable on your system where all programs and scripts are located, which can be directly executed from the terminal/cmd/shell.

If you had a program called myProgram.exe in C:\\Users\\Me\\Desktop\\ , you could add C:\\Users\\Me\\Desktop\\ to the PATH variable and execute the program using

myProgram

in the terminal. Otherwise, you would have to include the path like:

C:\Users\Me\Desktop\myProgram.exe

You can edit this variable like described with nice pictures here

To execute python and pip from the console, you should have C:\\Users\\...\\AppData\\Local\\Programs\\Python\\Python37 (or wherever you installed Python to) in your path variable :)

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