How to solve Pycharm Error :- Unresolved reference: SQLAlchemy [duplicate] - python

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.

Related

SyntaxError when installing modules [duplicate]

This question already has answers here:
Why does "pip install" inside Python raise a SyntaxError?
(7 answers)
Closed last month.
When I try to install packages, e.g. pypdf2, I get a syntax error:
I tried to change the environment variables like is done in other questions on this topic but I do not succeed in solving this problem. Can someone provide a step-by-step walkthrough in solving this problem for a Python beginner?
You are trying to execute pip install as if it is a python command: but it isn't.
You need to execute all pip commands from the normal O/S command line - since you are in Pycharm you can simply type those pip commands from the Terminal window (the one you used to try to run the script).

getting problem in importing libraries in Django [duplicate]

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.

Import openpyxl failing in Pycharm [duplicate]

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:

Trouble running Python 2.7 in Atom. "Unable to find command: python" [duplicate]

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

Error : "Django not found" [duplicate]

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

Categories