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.
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:
pip how to remove incorrectly installed package with a leading dash: "-pkgname"
(4 answers)
Closed 2 years ago.
I have tried to do the standard
pip freeze > requirements.txt and got
Could not parse requirement: -pencv-python
I then found out pip actually thinks this is the installed package
Notice the 1st line.
How do I get rid of this and get a requirements file?
For some reason, venv\Lib\site-packages had a folder ~pencv_python-4.2.0.34.dist-info, which was unused, due to opencv_contrib_python-4.2.0.34.dist-info also being present.
I removed it and it worked.
Windows, if anyone cares.
This question already has answers here:
pycharm doesn't recognize pygame package
(2 answers)
Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'dir:\projectPath\venv\Scripts\python.exe'
(8 answers)
Closed 2 years ago.
I installed Pycharm and then for the project setting I installed the package for pygame(Specify that I work on a mackbook). After all of this I tried to run the code which is:
import pygame
pygame.init()
pygame.display.set_mode((400,500))
while True:
pass
When I run the program the Python Launcher keeps jumping in the dock but it won't work.
I've tried even before with other codes that had no other errors, but still it didn't work.
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
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