Python says "No Module named SALib" despite successful install in cmd - python

I'm trying to perform a sensitivity analysis using the SALib module in Python(Spyder) and I installed it using "pip install SALib" in cmd prompt. The install was performed successfully however python says "No module named SALib" when I run the command "import SALib".
What am I doing wrong?

Related

installing pip offline got error "no module named 'setuptools' "

Hi I've been trying to install python and all of my depedencies with "offline mode".
i've downloaded manually from the machine that has internet.
I installed python v3.10
Now I'm trying to install pip-22.2.2, but i got an error that says :
ModuleNotFoundError :No module named 'setuptools'
My command is :
python setup.py install
My directory is :
Python : .../.../Python/Python310
Pip : .../.../Python/Python310/pip-22.2.2
I'm on windows 10
If you are getting an error that says "No module named 'setuptools'", it means that you are missing the setuptools module, which is required for the installation of pip. You can download the setuptools module from https://pypi.org/project/setuptools/#files. After downloading, you can install the module by running the command python setup.py install

Module pyaxidraw not found even though it's in site-packages

I tried to connect to my pen plotter using package pyaxidraw. I did install it successfully, upgraded as it says on their site by using commands:
python -m pip install https://cdn.evilmadscientist.com/dl/ad/public/AxiDraw_API.zip
python -m pip install https://cdn.evilmadscientist.com/dl/ad/public/AxiDraw_API.zip --upgrade --upgrade-strategy eager
It is visible in site-packages folder, the files are there. However, I cannot import it in my scripts - I get ModuleNotFoundError: No module named 'pyaxidraw'.
Path to site-packages is added to Path variable, as are many other paths to python. Tried installing it through python setup.py install and pip install . and nothing changed.
I also tried running the code below and it does work fine through terminal:
python -c "from pyaxidraw import axidraw; ad = axidraw.AxiDraw(); print(type(ad)); ad.interactive(); ad.connect(); ad.moveto(3, 5); ad.lineto(0, 0); ad.disconnect();"
this makes my plotter move and plot just fine while in code it's still underlined in red because I can't import it.
But running the same code with "python3" instead of "python" in terminal gives me ModuleNotFoundError: No module named 'axidrawinternal'. It is said to work with Python 3.6 so I don't get what is happening.
How do I make python/Pycharm see this module so I can write scripts with it?

ModuleNotFoundException youtube-dl module is not recognized

i have installed the youtube-dl module via pip with pip install youtube-dl and it worked. I can use it in CMD but for some weird Reason Python says that the Module doesnt exist:
Extension 'cogs.music' raised an error: ModuleNotFoundError: No module named 'youtube_dl'
this problem usually happens when there is more than one python version on the computer, download the modules according to the version you want to use
if this is didn't work for us do like bottom steps
go your python libs path and look up you must got this ........\lib\site-packages\youtube-dl
if you havn't got, go pypi site and download packets
after that, take out this file to ......\lib\site-packages
you should see like this :
or you can do like this:go your python path and open cmd and start writing:
......\python.exe -m pip install youtube_dl
Try the following command.
pip3 install --upgrade youtube-dl

PyCharm errors (Can't install packages)

So running the "pip install" command kept throwing a "Non-zero exit code(1)" error. Then installing it through the command line would work, however, they wouldn't recognize the packages in the IDE. I then uninstalled Python and re-installed and now it recognized the packages in the IDE but when I do "import pyautogui" and then try to run a line of code it gives an error saying "no module named pyautogui" even though if I run "pip list" the package is shown as installed.
I'm quite confused and I don't know why it's not working, I've been trying to figure it out for an hour 😡😡
Also if I try to installed any package in the IDE it still gives me the "Non-Zero exit code(1)" so I can't even install anything....
Here is the actual error code it's throwing
C:\Users\Admin\AppData\Local\Programs\Python\Python38-32\python.exe: can't open file 'C:/Users/Admin/PycharmProjects/untitled/AutoClick.py': [Errno 2] No such file or directory
Try to change the python environment in your run configuration. 👨‍💻

Package already installed but getting error like No module name "plspm" in Python?

I have started getting this error for a "plspm" module in python which is part of R library after I 'conda install plspm' on my windows 10 OS. Installation has been done properly but i could not able to import plspm in python getting "No module" error. Please anyone help me to resolve.Thanks.
version of r-plspm is -0.4.9
needed packages already installed(scipy,skit-learn,pandas,numpy,statsmodule).
command used to install:
conda install -c conda-forge r-plspm
Screen shot of installed plspm:
Error:

Categories