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
Related
Hi i'm recently working on a module in python (package named pykiwoom)
I installed a module in conda 32-bit environment pip install pykiwoom and tried to import this
from pykiwoom.kiwoom import Kiwoom
This works perfectly fine when I execute this in python console in pycharm
However, when I try this in terminal error occurs
ModuleNotFoundError: No module named 'pykiwoom.kiwoom'; 'pykiwoom' is not a package
internal structure of package pykiwoom looks like this
pykiwoom
init.py
kiwoom.py
parser.py
Can somebody tell me why this error occurs?
I think where you install your package is important in your case. You can check the packages installed using pip list in terminal, and check if you find it there.
This solution provides overview of how to setup your files as packages and modules.
Nevertheless, I think if you install your package in the terminal using pip, you could possibly access it.
I installed GraphQl on Windows 10 Laptop using the below command:
pip install --pre gql[all]
I tried using the Basic example available on Official Github Page. in my Python IDLE.
However, I am getting this ImportError in my IDLE.
ImportError: cannot import name 'gql' from 'gql'
Kindly help in resolving the issue.
Thanks
make sure the name of your file you're testing with isn't named something similar to a package you're importing. Just got me when I named my file ariadne.py
https://github.com/mirumee/ariadne/issues/400#issue-662473441
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...
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 installed the module pynauty via https://web.cs.dal.ca/~peter/software/pynauty/html/install.html. Everything seemed to work, and I believe that it is fully installed. However, when I try importing it in python shell, it says there is no module named pynauty. I think I am missing a final step in installing. Does anyone know what that final step would be?
I just grappled with this problem myself. As creimers pointed out, the setup script calls pip install --user . which installs pynauty in ~/.local/lib/pythonX.X/site-packages.
What you probably want is to have it installed in /usr/bin/python (or whatever pops up when you type which python). Assuming you already called make user-ins, all you need to do is run
sudo pip install .
from inside where you extracted and built your pynauty.