I try to set up project interpteter Python 3.5 in Pycharm and get an SDK error
did you move the whole project after you open it with pycharm?
if so, just remove the .idea/* (run rm -r .idea
under you project)
This problem is caused by: pycharm will create a .idea file under the project after the first time you import the project. SO the path in there will remain the old one after you moved the project. Thus the pycharm will keep trying to import 'old_path/venv/bin/activate' which is kept in .idea/*
I just had this error and got around it, and long-story-short I think it may have had to do with my PATH / PY_HOME / PYTHONPATH environment variables pointing to a different version of Python. Here's what I did:
Background:
Solution:
I just ran into the same problem with Python 3.6 (which I wanted to use) and Python 3.7 also installed in my computer. My solution was just to remove reference to Python 3.7 from System PATH.
So my PATH is currently set:
C:\Program Files\Python36\Scripts\
C:\Program Files\Python36\
That's all, hope it helps.
I got the same problem on windows 10, and got the solution.
PyCharm_Python_error.png
Root cause: - Python cannot be launched due to no python27.dll.
Solution: - Install python or put python27.dll in PATH
Thanks.
A fix for this issue, is tell to the global var named-> LD_LIBRARY_PATH to include the new python libraries compiled. Let's assume that you have just download python, extracted it & installed; assume that you have downloaded the 3.6.4 version
For include the library, you have to edit your .bashrc file. (This file is quite interesting, have a look ;) ). This file is an "hidden file" placed in your home:
nano ~/.bashrc
is a quite easy text editor.
Go at the end of the file and append this command, replacing your path of new python
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/whoami
/Downloads/Python-3.6.4
CTRL+X for save file.
For load the new file:
source ~/.bashrc
Operating system: Windows 10 / cygwin
Desired Python: 2.7.14
Error: "SDK seems invalid"
My fix:
note: I guess it works since the errors I see are python generated eg "Traceback (most recent call last): File ..."