This question already has answers here:
Setting up Django with Eclipse - "Django not found"
(2 answers)
Closed 7 years ago.
I'm working with Eclipse and suddenly I could not use Django anymore.
I tried to make a new project, but an error occurred : "Django not found".
I checked the interpreters like it is said in the forums.
I have uninstalled and installed Django multiple times, change the pythonpath thousands times, I reinstalled pydev, nothing has fixed the issue.
I really don't understand the fact that I was just typing usual code, and suddenly nothing worked again.
Edit : In the python command, I can import django.config but i cannot import Django.config.admin for example.
ok, I found a solution which always works :
uninstall and reinstall everything (python, Django, pydev) whitout using the pip
Related
This question already has answers here:
Why isn't PyCharm's autocomplete working for libraries I install?
(2 answers)
Closed 2 years ago.
I pip installed flask-sqlalchemy on my windows laptop. Pycharm gives out this error and doesn't allow me to import SQLAlchemy. I tried a bunch of solutions:
invalidate cache and restart
refreshing path
What do i do to fix this ?
You are using a virtual environment, so you should install it within your venv, not on your main python interpreter. Install it again in the terminal tab in your pycharm project.
This question already has answers here:
VS Code error when importing Django module
(11 answers)
Closed 2 years ago.
I'm getting this error
even tho I have installed pylint in the environment it still showing this error
The issue is with django and firstpage, not pylint. Install them in the same way you installed pylint.
This question already has answers here:
How do I use installed packages in PyCharm?
(14 answers)
Closed 5 months ago.
Successfully installed the openpyxl module with pip. It imports no problem on the python terminal, but imports fail in Pycharm.
Thought I might have messed up the installation so uninstalled the module and reinstalled.
After reinstalling the second time, checked if python recognized the module and if it works. It passed both those checks. But when using Pycharm and using the import command it doesn't work.
Hoping someone with more experience with Pycharm can help. Attached related screenshots below. I am using Python 3.7 (32-bit).
If I am missing any information or breaking any rules please let me know.
https://imgur.com/a/2A5VymR
Thank you all in advance.
Uninstall Pycharm
Reinstall Pycharm but with this setting make sure to click on "add launchers dir to the PATH"
Installing setting:
This question already has answers here:
How to add to the PYTHONPATH in Windows, so it finds my modules/packages?
(23 answers)
Closed 6 years ago.
I'm currently trying to migrate to Atom to use as a code editor for python at home.
After following tutorials on how to set this up I have installed the packages atom-runner and script.
I tried running it and got the following error message:
I've looked into what and where the path is exactly and how to correct it but I haven't found any sufficent explanation.
How do I fix it?
So I know how to make the PYTHONPATH variable except I don't know what the value should be. How do I determine the value?
You are missing a path to python binaries in the system PATH. This question has everything you need to fix your issue: How to add to the pythonpath in windows 7? How To Add Python to the Windows Path
I am using python 2.7.5 on windows and I have followed these directions for the windows python 2 section to the letter.
I found 2 other questions on SO with the same problem but they were both on linux and the top answers were not helpful
the only thing I can see that might have gone wrong is when I ran
C:\env> scripts\easy_install pyramid
I got a warning that said :
"WARNING: The C extension could not be complied, speedups are not enabled. Plain-Python installation succeeded."
Could that be the problem?
I found the answer to my problem. My virtual environment was correctly set up, I just needed to run my code through the version of python found in the scripts folder of my virtual environment.
The python file you are trying to run can be found anywhere on your local machine as long as it uses python from that environment, for example
C:\anypath\onlocalmachine> C:\env\Scripts\python.exe helloworld.py
I was making the mistake of putting my python file in the virtual environment and attempting to run the following WRONG code
C:\env> helloworld.py
I thought that I was supposed to be working entirely within the virtual environment
Thanks for the help in the comments rebelious