Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I tried installing pyaudio from various source such as pip, conda, whl file, unofficial python, pyaudio.exe but none of them worked.
When I write:
conda install pyaudio
it says All requested packages already installed.
I went to lib of anaconda and there I found pyaudio.py but then also I cannot import it in my program.
Please install pyaudio using pipwin.
pip install pipwin
pipwin install pyaudio
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 days ago.
Improve this question
I can't import libraries in python that I have installed using pip
as shown here.
Even other libraries such as PySimpleGui and PyGame don't work when I try to import them.
I have tried uninstalling and reinstalling the libraries and I am sure they are installed on my computer.
To sort this out, you need to establish two things:
where you (i.e. pip) installed the packages, and
where Python is looking for them
You can find where pip installed a package with:
pip show PACKAGE # e.g. pip show flask
Obviously, if you install using pip3 install flask, you will need to use:
pip3 show flask
Now you need to see which Python you are running and where it is looking for its packages:
import sys
print(sys.executable) # show which Python we are running
print(sys.path) # show where it is looking for packages
Hopefully you will see you are not installing into the Python interpreter you are using.
I think you might have installed them under a different folder or space than what you need. For example the code below installs the library at your current space, while simply pip3 install pygame might be somewhere else.
python3 -m pip3 install pygame
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 1 year ago.
Improve this question
I installed pywhatkit, and it's stored along with other packages in my python3.8 file. However, I am not able to import it to VS code or any other IDEs. I tried installing tkinter. But I facing the same issue again. What should I do ?
Sometimes VS Code does this. You should install a library, after that just restart VS Code and the problem should be solved.
However, if the problem still occurs, it will be due to the Python version.
You are using Python 3, the issue is most likely that when you installed pywhatkit and tkinter you used the pip install library command, which will only install them for Python 2. To install the libraries for Python 3 just use the pip3 install library command in place of pip.
Make sure you have selected the right python interpreter. The Status Bar always shows the current interpreter:
Inspect whether you can find the packages you want to import in this environment.
Inspect where the packages you have installed through pip: pip show xxx.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 1 year ago.
Improve this question
I am trying to install PyAudio in my MacBook Air M1 for a while, tried all the possible ways to my knowledge and read the compleate official documentaion even i cant find the solution
xcode-select --install
brew remove portaudio
brew install portaudio
pip3 install pyaudio
Got an solution from an expert that find the portaudio location and include it while installing pyAudio, But searched my enterier hardisk and I cant find the brew/portaudio files.
Please help me!
Find out the path of where portaudio is installing. Use that path to while installing pyaudio. For example, if it is in /opt/homebrew, you can use pip install --global-option='build_ext' --global-option='-I/opt/homebrew/include' --global-option='-L/opt/homebrew/lib' pyaudio.
Most likely the above command will solve your issue since it solved mine on an M1 Mac!
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I tried to install pyaudio, but it returns an error like this:
Could not build wheels for pyaudio, since package 'wheel' is not installed.
How can I fix this?
It looks like you just need to install the wheel package.
You can do this by running pip install wheel at the terminal.
Upgrading pip setuptools wheel did the trick for me.
pip install --upgrade pip setuptools wheel
This problem started appearing since I upgraded to pip 20. Here is some link i found useful Could not build wheels
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 months ago.
Improve this question
I installed Camelot module for python 3.7 on computer without internet connection, installed dependencies (tkinter & ghostscript).
When I try "import camelot" in jupyter notebook I get error "no module named cv2".
I can't find cv2 module link to download it separately.
How can I solve this problem?
This got rid of the error for me.
pip install camelot-py[cv]
I'm using a Mac with Apple Silicon and the camelot-py[cv] method didn't work. I installed opencv separately and everything has been working fine so far.
pip install opencv-python
install comelot-py
python -m pip install camelot-py