OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Python Module not Found after pip install in VSCode

  • Thread starter Thread starter Nick
  • Start date Start date
N

Nick

Guest
Installed a new fresh version of python and running into the following error in VS Code:

Here are the steps I have taken:

  1. Create Virtual Environment and activate:

enter image description here

  1. Create Test.py Script and Test out importing module. Not found... Though strangely it is predicted as I type?

enter image description here

enter image description here

I notice its underlined in yellow so need to install the module.

3.Install module using pip: enter image description here

4.All seems successfully installed and yellow line goes away enter image description here

  1. Running Script I Still get the error:

enter image description here

No idea why.

I have removed the virtual environment and reinstalled. same with the modules but no change.

only thing I think is odd is that after removal it still predicts Matplotlib as in the first image... SO maybe it's getting confused in some way?
<p>Installed a new fresh version of python and running into the following error in VS Code:</p>
<p>Here are the steps I have taken:</p>
<ol>
<li>Create Virtual Environment and activate:</li>
</ol>
<p><a href="https://i.sstatic.net/TfowPYJj.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/TfowPYJj.png" alt="enter image description here" /></a></p>
<ol start="2">
<li>Create Test.py Script and Test out importing module. Not found... Though strangely it is predicted as I type?</li>
</ol>
<p><a href="https://i.sstatic.net/oTWpoJ2A.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/oTWpoJ2A.png" alt="enter image description here" /></a></p>
<p><a href="https://i.sstatic.net/KnsolfLG.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/KnsolfLG.png" alt="enter image description here" /></a></p>
<p>I notice its underlined in yellow so need to install the module.</p>
<p>3.Install module using pip:
<a href="https://i.sstatic.net/19h5sqV3.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/19h5sqV3.png" alt="enter image description here" /></a></p>
<p>4.All seems successfully installed and yellow line goes away
<a href="https://i.sstatic.net/f1sswS6t.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/f1sswS6t.png" alt="enter image description here" /></a></p>
<ol start="5">
<li>Running Script I Still get the error:</li>
</ol>
<p><a href="https://i.sstatic.net/itJtF3dj.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/itJtF3dj.png" alt="enter image description here" /></a></p>
<p>No idea why.</p>
<p>I have removed the virtual environment and reinstalled. same with the modules but no change.</p>
<p>only thing I think is odd is that after removal it still predicts Matplotlib as in the first image... SO maybe it's getting confused in some way?</p>
 

Latest posts

Online statistics

Members online
0
Guests online
3
Total visitors
3
Ads by Eonads
Top