Yes, I know this question has been asked in the past, twice. Still I tried all the ideas that were proposed plus ideas from other websites and yet it still doesn't work, so here I go:
I have windows 10, python 3.8.3 and java 1.8.0_261.
I tried first pip install tabula-py.
Then I tried pip install tabula_py.
Then I tried to find the version of java in cmd which it didn't find. I then added a path (I found on the internet) to the settings in "My PC" and then I did find the version of java.
I tried to restart my computer.
I tried pip uninstall tabula-py and then pip3 install tabula-py
But still, when I run "import tabula" in jupyter notebook, it says he can't find this module. I have searched the entire internet and tried everything suggested but with no luck. Can anyone please help me?
Links to the other 2 questions I went over:
Python: I tried to use tabula: ModuleNotFoundError: No module named 'tabula'
Tabula-py - ImportError: No module named tabula
So in the end I found yet another link with a line of code that did work!
conda install -c conda-forge tabula-py
To my dissapointment I have no idea why this works and why the other suggested code didn't, as cmd is not my specialty. If anyone understands and could explain what the issue was or what the difference is, I would love to hear. Thank you
Source: https://anaconda.org/conda-forge/tabula-py
I only ran the first line
Does the "conda" only work in a specific environment ?
Because I try command in vs_code but show errors about "conda" is unrecognized command...
Related
I am trying to run someone else's code without a requirements.txt file and it says: ModuleNotFoundError: No module named 'django-quill. I tried to do pip install django-quill in a virtual env but I still get the same error. What am I missing here?
As it turns out, I had to run pip install django-quill-editor in order for the code to work as expected. I am still not sure why the original command did not work but this resolved the issue for me.
You can find the official setup guide for Django quill here: https://github.com/LeeHanYeong/django-quill-editor#setup
This question is not a duplicate of this question, because I am trying to create an app.
I am currently following this tutorial, but when I try to run my app,
my command prompt prints out this error:
Why does this error happen and how can I solve it? I read through all the answers to the linked question, but none of them are pertinent to my problem.
Please anyone help me, I still haven't found a working solution; I am getting desperate!!!
Edit: I can't just install and uninstall pynput? Idk why it doesn't work because shouldn't pynput come with idle?
Version: 3.74 python idle, most updated version of pyinstaller
The following might help you if you haven't tried them already:
Update pip from the command line
Unistall pyinstaller
Re-install pyinstaller and try it again
If the above does not work, try running the following command in the command line. Make sure there are some print statements in your code to see if it works.
python monitoring_culmination_product.py
If you got a message saying "python is not recognised as an internal or external command" then python might have not been added as an environment path.Try this to fix the issue.
You could always re-install python if things get difficult.(make sure you install the appropriate version 32-64bit)
If the command though executed without a problem. Try to use pyinstaller on another file to see if the problem has to make sure the problem has to do with pyinstaller.
From a personal experience, pyinstaller can be unreliable at times so I put the following line in my projects just to make sure. It might help you too.
import pkg_resources.py2_warn
Disclaimer: Although it is not specified I assume that you are using Windows
You could try to use conda create to get an environment containing all the need dependencies (numpy, etc) and then use pyinstaller as explained in this discussion.
Please fall back to 1.6.8 version of pynput. pip install pynput==1.6.8
Ref : https://stackoverflow.com/a/63721929/14759065
I'm new to Python and I have installed multiple versions (Anaconda3 and Python 3.7.4) on my Mac.
My pip is not working. When I run any pip command, everything appears to be importing properly. But it gets the last line, import zipfile, and I get the message:
ModuleNotFoundError: No module named 'zipfile'
I have been Googling for hours and I can't seem to find a solution.
My Python now lives in the Anaconda directory /users/NAME/opt/anaconda3/.
Ultimately, I would like to start from scratch and just reinstall Python 3.7.4 again, so it's all nice and clean. I can't uninstall Anaconda because I get the same ModuleNotFoundError: No module named 'zipfile'.
I have also tried to install the module zipfile and that doesn't work either.
Can someone help?
Thanks
Thanks everyone for your help so far. I am really new to Python, so I don't think I explained myself properly.
UPDATE: I think I have fixed my problem. Pip was looking for the file zipfile, so I downloaded https://pypi.org/project/zipfile36/#files and changed the name of zipfile36.py to zipfile.py.
Seems like it did the trick.
I have been trying to intall scikit-learn and pytorch using their respective commands given in the docs:
The commands for installing PyTorch are:
1) pip3 install https://download.pytorch.org/whl/cpu/torch-1.0.1-cp37-cp37m-win_amd64.whl
2) pip3 install torchvision
The command for installing scikit-learn is:
pip install -U scikit-learn
Some background:
I am using Windows 8.1, Python 3.7.2. My pip is updated. I have also installed Anaconda for solving this using conda, but had zero luck!(Also, here I am running into 'conda' unrecognized error which is another story). Here are the paths my PATH variable holds.
PATH
C:\Users\satya\Anaconda3;
C:\Users\satya\Anaconda3\Library\mingw-w64\bin;
C:\Users\satya\Anaconda3\Library\usr\bin;
C:\Users\satya\Anaconda3\Library\bin;
C:\Users\satya\Anaconda3\Scripts;
C:\Users\satya\AppData\Local\Programs\Python\Python37\Scripts\;
C:\Users\satya\AppData\Local\Programs\Python\Python37\; C:\Users\satya\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.7
The Actual Problem:
The same commands for installation given above work perfectly fine on my other Windows 10, but, for my Windows 8.1 it gives this error which has become a real PITA
Import Error: DLL load failed The specified module could not be found
When I import sklearn or import torch I get the exact same error. All the time.
Back Story:
I have searched almost all the related questions I could find on Stackoverflow and Github for 6+ hours to help me solve this problem. But, none of the answers have helped till now and some haven't had an "understandable" answer. Maybe, its just a small fix, but now, I am choosing to post a question on SO.
My Question Again:
Can someone please help out and try to explain what I am missing out here? I really want to fix this error for good(and want to be in a position to fix it if I encounter it again). An elaborate answer would really help understand easily.
Thank You!
Please check your python build number with the following command.
conda list python
Python 3.7.2 with build number h8c8aaf0_2 has a solved issue.
If this is the case, an update will do.
conda update python
When I use cmd 'pip list',I find a package called '-ensorflow' which couldn't be unistalled using command 'pip uninstall'.Its version is '1.9.0' .
I have installed 'tensorflow 1.13.1',what's the difference between them? What's more, when I upgraded 'tensorflow' from 1.09 to 1.13,CMD seemed to show version conficts between '-ensorflow' and 'tensorboard'.
Running Windows 10, Python 3.7.1.
I am searching for a long time on net. But no use. Please help or try to give some ideas. Thanks in advance.
package list
using command 'pip uninstall'
I found an answer to this. There must be some issues when you are uninstalling the package. If you search your folders (C:\Anaconda3\envs\ml-agents\Lib\site-packages for me) you will find the folder "~ensorflow-gpu" and another dist folder with similar. Just delete the folder and then restart the console. No error will come