problem while installing python package in spyder - python

I'm trying to install python library called "librosa" in spyder anaconda.
I tried conda install -c conda-forge librosa from here to install package.
This was result in anaconda shell.
But when I try to import librosa in spyder, it gives error.
How to fix this?
Thank you!

Related

Issue with installing imblearn package

Attempting from Jupyter
Attempting from Conda prompt
I'm trying to install imblearn package, but I keep getting this error. Any solutions would be helpful. I'm kinda new to Python, so I don't know a lot about package installation.
Use Conda Forge. The package name is imbalanced-learn. Try installing with
conda install -c conda-forge imbalanced-learn

No module named 'fbprophet'?

I have tried to install Facebook Prophet in Anaconda on Ubuntu following the instructions at:
https://facebook.github.io/prophet/docs/installation.html#installation-in-python.
In Anaconda Navigator, when I click on the environment, fbprophet is listed along with the other installed packages. The problem is that when I try to use fbprophet in Jupyter:
from fbprophet import Prophet
I get an error: "ModuleNotFoundError: No module named 'fbprophet'". It's bizarre because the fbprophet package seems to be installed in my environment according to Anaconda.
Can anyone help, please?
Thanks!
It seems that you have installed the package in a separate environment in anaconda. I think when you are running jupyter notebook, it is running from the base environment, But actually you need to run it from the library environment. So if the case is this you need to install jupyter notebook in the other environment and then run the jypyter notebook from that environment. So at first make sure that you have installed jupyter notebook correctly on the appropriate environment. If you have installed it correctly then open jupyter notebook and in a code cell write the following commands and execute the cell.
First, execute this command in a code cell-
!conda install -c conda-forge fbprophet -y
Then in another code cell execute this command-
!pip install --upgrade plotly
Now try to import the library.
Recently the fbprophet project renamed to prophet.
If you are referring to it using old name you should install the old version.
pip/conda/mamba/whatever install prophet
After spending hours scouring the internet for answers to this question and similar questions like "ERROR: Command errored out with exit status 1: when installing "Facebook" "prophet"" what worked for me was quite simply using a sudo pip install at the terminal prompt:
$ sudo pip install pystan==2.19.1.1 prophet
After install using prophet instead of fbprophet:
from prophet import Prophet
Credit to GitHub issue 1874 - https://github.com/facebook/prophet/issues/1874
Window10 + Pycharm.
This works with Python 3.8. and Python 3.9.x:
pip install localpip
localpip install fbprophet

Problems installing astra toolbox in Python

I'm trying to install astra-toolbox for python on windows and I'm getting this error.
Anyone have any ideas?
i have tried to install via pip method but it's not working facing the same error as you. if you go to official installation documentation instructions no method to use pip method is given.
i have anaconda installed in my system so i have tried using these commands source:
conda install -c astra-toolbox astra-toolbox
conda install -c astra-toolbox/label/dev astra-toolbox
this solve the issue and astra-toolbox is installed in my system.
PS. this will downgrade package in anaconda. so better to install in separate python environment.

Biopython Package not recognized even when installed

I ran pip3 install biopython and it seemed to have been installed correctly
But when I try to run it in ipython or python3 for example
I'm quite confused because if I do the same thing with numpy or sklearn it works perfectly. Any ideas?
Notice that your environment you are using to run Python (second image) is using the Anaconda Python Distribution.
When you are installing using the command in the first image you are installing in the Python3 environment but not in the Anaconda Distribution environment.
Try running the following command to install the package in Anaconda:
conda install biopython

Why can't I import graphviz

I have installed graphviz by trying pip install graphviz. It said it had been successfully installed but I still got the ImportError: No module named graphviz. BTW, I'm not running the program on Conda or Anaconda.
I had the same issue. The problem for me was the default python version that I was using for pip. I fixed it using python3 -m pip install desired_package.
Hope it solves your problem

Categories