Immute Ad
close

The next 100 people to upload a video to NepTime will receive 25 IMT and 250 points ($5)! Just make sure to update your BNB wallet address for IMT donations on your settings page.

Immute Ad

Berikutnya

2021 How to Fix

9 Tampilan· 06/17/22
How To & Style
How To & Style
2 Pelanggan
2

2021 How to Fix "No Module Named pkg_name" in Python! First, download the package using a terminal outside of python. Then fix your %PATH% if needed. Troubleshoot included. Beginners.

To use "import pkg_name" in a script, you must INSTALL THE PACKAGE!
---- For VIRTUAL ENVIRONMENTS or PYCHARM users, watch this: https://youtu.be/zCO3KxV2zPI

Installing
0:04 Option 1, use the 'Terminal' in your IDE (PyCharm)
pip3 install pkg_name OR pip install pkg_name
This installs the package in your virtual PyCharm environment

1:21 Option 2, open a terminal with your Operating System
pip3 install pkg_name OR pip install pkg_name
Also try "python -m pip3 install pkg_name"
This installs the package onto your system, accessible to all IDE's and python interpreters.

*********************************
Troubleshooting (if option 2 does not work)

2:03 Option A, check your PATH and add a new variable to it
display current path with: 'echo %PATH%'
find your pip.exe file
add to path with: setx PATH "%PATH%;C:\location_of_your_pip.exe\Python39\Scripts\"

5:32 If A doesn't work, try this: use the 'Run' application (works reliably)
add your location of pip.exe to System Variables and User Variables

**********************************

Install Python and PyCharm IDE: https://youtu.be/wEu-OCpy-9o
Python Coding Series: https://youtu.be/2QNCQCbkwNw
Python Macros Tutorial: https://youtu.be/OrfDYJnmkW4
Lists in Python: https://youtu.be/EABAzlL1p7k
Variables in Python: https://youtu.be/ae5NxxGhVnI


Comment below and I will help you out!
Support me on Patreon! https://www.patreon.com/philsbeginnercode

Menampilkan lebih banyak
Immute Ad

 0 Komentar sort   Sortir dengan


Berikutnya