Python Camelot module does not work offline [closed] - python

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

Related

Unable to import libraries in python even though i have the libraries installed [closed]

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

Unable to import a library into VS code [closed]

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.

How can I install PyAudio in Mac M1 [closed]

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!

How to install a zip package in Pycharm [closed]

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 1 year ago.
Improve this question
I am using Pycharm IDE. I am doing a project that requires an older version of Tensorflow. I tried installing in from within pycharm marketplace using specified versions, but it says that there is no matching distributions found. So, I downloaded Tensorflow v1.8 sourcecode from Github as a zip. Now I want to install it in pycharm. How do I do that?
Having an IDE with things like a 'marketplace' is nice in theory, but you'll always end up having to resort to the commandline. Try to open the Terminal in PyCharm, it should activate with the python environment of your project. Then install tensorflow 1.8 with pip install tensorflow==1.8.0
For the latest version
pip install tensorflow
For the previous ones
pip install tensorflow==THE VERSION YOU WANT
pip install tensorflow==1.5
Or with pyCharm
Preferences> Project: PROJECT NAME> Python interpreter
Click on the + symbol at the top left and look for the package you want to install
(At the bottom right you can also check the Specify version box and choose the version you prefer)

Python package installation issue : PyAudio and PortAudio [closed]

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

Categories

Resources