Re: FW: pip Error

2021-12-11 Thread Mats Wichmann

On 12/11/21 00:35, Sidharth S Nair wrote:


Hi, I am NINJAGAMING107 a active python user and lately I have been trying
to make my own personal AI assistant but I am not able to make because I
am not able to import Speech Recognition and some other more. The error
says module not found even though in my folder where I installed python
and the packages there is a folder of speech recognition and the rest of
the things which I installed. I used Pycharm and VS code for this still
not working. If there is any way to fix this please tell me or if I am
doing the installation wrong please tell me. Hope that you will reply to
ASAP.


Rule #1 on module not found errors: it's always a path problem.

Unfortunately, on today's systems, there are often many places things 
can go as you may have several Pythons, several virtualenvs, etc.


The basic rule is to install with the Python you're intending to use, 
that way the paths it's going to look in are the same paths your 
packages got installed in.


In the case of VS Code, you can open a terminal (inside the IDE) and run 
your pip commands there, and that will be happening in the environment 
that is defined for your project.  In the case of PyCharm, you can click 
on the Python version in the lower right and click Interpreter Settings, 
through there you can search for and install packages from PyPi. Either 
one will give you the option to setup a fresh virtualenv for the 
project, which you may want to do since you're unsure of the current state.




--
https://mail.python.org/mailman/listinfo/python-list


FW: pip Error

2021-12-11 Thread Sidharth S Nair
    

    

   Sent from [1]Mail for Windows

    

   From: [2]Sidharth S Nair
   Sent: 11 December 2021 01:00 PM
   To: [3]python-list@python.org
   Subject: pip Error

    

    

    

   Sent from [4]Mail for Windows

    

   Hi, I am NINJAGAMING107 a active python user and lately I have been trying
   to make my own personal AI assistant but I am not able to make because I
   am not able to import Speech Recognition and some other more. The error
   says module not found even though in my folder where I installed python
   and the packages there is a folder of speech recognition and the rest of
   the things which I installed. I used Pycharm and VS code for this still
   not working. If there is any way to fix this please tell me or if I am
   doing the installation wrong please tell me. Hope that you will reply to
   ASAP.

    

   Thank you in advance.

   NINJAGAMING107

    

 This email has been checked for viruses by Avast antivirus
   [5]Avast logo software.
 [6]www.avast.com

    

References

   Visible links
   1. https://go.microsoft.com/fwlink/?LinkId=550986
   2. mailto:ninjagaming107ga...@gmail.com
   3. mailto:python-list@python.org
   4. https://go.microsoft.com/fwlink/?LinkId=550986
   5. https://www.avast.com/antivirus
   6. https://www.avast.com/antivirus
-- 
https://mail.python.org/mailman/listinfo/python-list