Как исправить ошибку python: invalid python SDK?

Когда скачиваю библиотеку пишет ошибку
- Вопрос задан более года назад
- 4917 просмотров
Комментировать
Решения вопроса 0
Ответы на вопрос 1
1. Попробуйте пересоздать virtual environment и проверить работает ли любая программа типа Hello world!
2. Для pyautogui нет whl — надо собирать из исходников. А установлены ли у Вас MS Build Tools?
2. И, как обычно, кириллица в имени пользователя — сборка пакета неизбежно закончится ошибкой.
Ответ написан более года назад
Комментировать
Нравится Комментировать
Ваш ответ на вопрос
Войдите, чтобы написать ответ

- Python
Можно ли оптимизировать этот код?
- 1 подписчик
- час назад
- 46 просмотров

- Python
- +1 ещё
Почему не удаляются сообщения в vk_api?
- 1 подписчик
- 10 часов назад
- 20 просмотров
Cannot set up a python sdk что делать?
Добрый день, подскажите в чем проблема? вообще не знаю как обойти эту ошибку.
Cannot set up python SDK at python 3.10
The SDK seems invalid
Я удалял питон и пайчарм полностью, пытался переустановить но по-прежнему получаю невозмонжость добавление интерпретатора в виртуальное окружение.
Лучшие ответы ( 1 )
94731 / 64177 / 26122
Регистрация: 12.04.2006
Сообщений: 116,782
Ответы с готовыми решениями:

Что мне делать, выручайте с SDK
Ребята, попал в неловкую ситуацию. Уехал работать в дальние дали, на долгий срок, там где ловит.
«No Android SDK found. configure an Android SDK». Что делать?
Сначала Андроид Студио зависал при компиляции приложения и выдавал сообщение, что слетел.

В Android Studio нужно внедрить в приложение DropBox. У сервиса есть своё SDK, однако я не понимаю, что с ним делать
Вот ссылка на SDK: https://github.com/dropbox/dropbox-sdk-java/. Сначала я подумал, что нужно.

Что делать если в Nested Set таблице на 1000 записей, вручную была удалена одна запись из phpmyadmin?
Добрый день, вся суть в вопросе, использую YII , до трагедии благополучно наращивал свое дерево.
Изучил python: что делать дальше?
Изучал до этого javascript — всё изучил но ничего не мог написать(сложный для новичка). Изучил.
Автоматизируй это!
![]()
7540 / 4556 / 1206
Регистрация: 30.03.2015
Сообщений: 13,118
Записей в блоге: 29

Сообщение было отмечено Alarih_ как решение
Решение
Alarih_, пичарм то при чем? удали питон, создай папку c:/python установи заново питон имено в нее. В пичарме выбери для интерпретатора эту папку
Invalid Python SDK in PyCharm
Since this morning, I’m no longer able to run projects in PyCharm. When generating a new virtual environment, I get an «Invalid Python SDK» error. Cannot set up a python SDK at Python 3.11. The SDK seems invalid. What I noticed: No matter what base interpreter I select (3.8, 3.9, 3.10) Pycharm always generates a Python 3.11 interpreter. I did completely uninstall PyCharm, as well as all my python installations and reinstalled everything. I also went through the «Repair IDE» option in PyCharm. I also removed and recreated all virtual environments. When I run «cmd» and type ‘python’ then python 3.10.1 opens without a problem. This morning, I installed a new antivirus software that did some checks and deleted some «unnecessary files» — maybe it is related (antivirus software is uninstalled again).
asked Jan 11, 2022 at 9:36
user7431005 user7431005
3,959 4 4 gold badges 23 23 silver badges 51 51 bronze badges
Seems to be creeping up with the 2021.3.2. I wish there was an issue to track this
Mar 5, 2022 at 8:13
12 Answers 12
I had the same problem on Linux. Solved it by invalidating caches as suggested here: https://stackoverflow.com/a/45099651/3990607
In pycharm click on File menu, then choose Invalidate caches. , tick all 4 boxes and then restart PyCharm. Solved the problem for me.
Решенные Pycharm — Invalid Python SDK
Hello,
I am following the Python IDE instructions from this page.
When I choose python.exe as the System Interpreter, I get the following error:
Cannot set up a python SDK at Python 2.7 (E:\c4d\R20\python.exe). The SDK seems invalid.

I thought it was maybe because my Project Interpreter was 3.7, but I tried using the C4D’s Python 2.7 interpreter and I got the same error. I also see in the documentation that the Interpreter in the example is using Python 3.6.
I am using the c4dpy.exe for R20.
I searched about this error and found that it’s sometimes caused by the Python path. I have changed my Python environment path variables to the C4D 2.7.14 interpreter and I’m still getting the error.
Can anyone help me get this working?
отредактировано
Hi, @blastframe thanks for contact us.
So far we never encounter this issue and we are not able to reproduce it so few ideas to try:
- Make sure you have permission to write in the Cinema 4D folder and subfolder.
- Flush the cache, https://stackoverflow.com/a/45099651.
- Send us your PyCharm log, see https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files
MAXON SDK Specialist
отредактировано Бывший пользователь
- Make sure you have permission to write in the Cinema 4D folder and subfolder.
- Flush the cache, https://stackoverflow.com/a/45099651.
- Send us your PyCharm log, see https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files

Hi @m_adam,
Thank you for the reply. I ran PyCharm as an Administrator and flushed the cache. I still received the same error. When I looked at the log, I found a lot of missing file errors, which made me think I had the python.exe (c4dpy.exe) file in the wrong location. When I moved the file to the same folder as the R20 .exe, PyCharm started working. I was confused about the file location because, while in the Install instructions from the C4D Python SDK Documentation has the c4dpy in the C4D folder, this image made it seem like it could exist in a separate folder:
I would have expected a file location similar to the default Windows location:
C:\Program Files\MAXON\Cinema 4D R20\python.exe
Thank you again. I have one follow-up question that I’ll ask as a new topic.