I try to set up project interpteter Python 3.5 in Pycharm and get an SDK error?
Any solution to fix it?
Select the Add Environment command in the Python Environments window or the Python toolbar, select the Python installation tab, indicate which interpreters to install, and select Install. You can also manually install any of the interpreters listed in the table below outside of the Visual Studio installer.
It's in File->Settings->project interpreter in newer versions. And in even newer (eg. 4.5. 4 and up) it's in File -> Settings -> Project: {your_project_name} -> Project Interpreter .
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 had such problem. The solution was pretty easy. I created an account in russian in Windows, and you could emphasize that the error message (the big one) then contains the word about encoding is used. Therefore check your Windows account name - change it if it's not in english and contains spaces and other unwanted signs. Thanks.
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 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.
In my case, python.exe that I had in my venv was the problem.
Thus, I downloaded a specific version of Python and pasted contests of its Script folder to my \venv\Scripts folder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With