The sdk seems invalid pycharm что делать
Перейти к содержимому

The sdk seems invalid pycharm что делать

  • автор:

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

62210b9f93092826333843.png

Когда скачиваю библиотеку пишет ошибку

  • Вопрос задан более года назад
  • 4916 просмотров

Комментировать

Решения вопроса 0

Ответы на вопрос 1

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

Ответ написан более года назад

Комментировать

Нравится Комментировать

Ваш ответ на вопрос

Войдите, чтобы написать ответ

python

  • Python

Можно ли оптимизировать этот код?

  • 1 подписчик
  • 10 минут назад
  • 11 просмотров

python

  • Python
  • +1 ещё

Почему не удаляются сообщения в vk_api?

  • 1 подписчик
  • 9 часов назад
  • 17 просмотров

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 — всё изучил но ничего не мог написать(сложный для новичка). Изучил.

Автоматизируй это!

Эксперт Python

7540 / 4556 / 1206
Регистрация: 30.03.2015
Сообщений: 13,118
Записей в блоге: 29

Лучший ответ

Сообщение было отмечено Alarih_ как решение

Решение

Alarih_, пичарм то при чем? удали питон, создай папку c:/python установи заново питон имено в нее. В пичарме выбери для интерпретатора эту папку

Saved searches

Use saved searches to filter your results more quickly

Cancel Create saved search

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error with pyenv virtualenv: The SDK seems invalid #112

ClonedOne opened this issue Feb 8, 2021 · 1 comment

error with pyenv virtualenv: The SDK seems invalid #112

ClonedOne opened this issue Feb 8, 2021 · 1 comment

Comments

ClonedOne commented Feb 8, 2021 •

I am experiencing a problem with pycharm when trying to select as interpreter a python bin created through a pyenv virtualenv.

Cannot set up a python SDK at Python 3.10 (remote_maax) ($HOME/.pyenv/versions/remote_maax/bin/python). The SDK seems invalid. 

I am not using python 3.10, the virtualenv has been created with python 3.8.5. The virtualenv works when activated manually from the shell with pyenv activate, I can pip install packages and use them correcly.

I am on a new install of pop os 20.10 (ubuntu), kernel 5.8.0-7642-generic, pyenv 1.2.22, pycharm community 2020.3.3 installed via flatpak.

Launching pycharm from the shell I get:

com.jetbrains.python.sdk.InvalidSdkException: Failed to determine Python's sys.path value: STDOUT: STDERR: /home/gio/.pyenv/versions/remote_maax/bin/python3.8: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /home/gio/.pyenv/versions/remote_maax/bin/python3.8) at com.jetbrains.python.sdk.PythonSdkType.getSysPathsFromScript(PythonSdkType.java:457) at com.jetbrains.python.sdk.PythonSdkType.getSysPath(PythonSdkType.java:439) at com.jetbrains.python.sdk.PythonSdkUpdater.evaluateSysPath(PythonSdkUpdater.java:576) at com.jetbrains.python.sdk.PythonSdkUpdater.getLocalSdkPaths(PythonSdkUpdater.java:436) at com.jetbrains.python.sdk.PythonSdkUpdater.updateLocalSdkPaths(PythonSdkUpdater.java:400) at com.jetbrains.python.sdk.PythonSdkUpdater.updateLocalSdkVersionAndPaths(PythonSdkUpdater.java:370) at com.jetbrains.python.sdk.PythonSdkUpdater.lambda$updateVersionAndPathsSynchronouslyAndScheduleRemaining$0(PythonSdkUpdater.java:267) at com.intellij.openapi.progress.impl.CoreProgressManager$1.run(CoreProgressManager.java:275) at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:962) at com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:520) at com.intellij.openapi.progress.impl.ProgressRunner.lambda$new$0(ProgressRunner.java:79) at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:235) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:178) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:658) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:610) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:65) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:165) at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:235) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665) at java.base/java.lang.Thread.run(Thread.java:834) 

I do have libc 2.32 installed:

glibc-source/groovy,groovy,now 2.32-0ubuntu3 all [installed] GNU C Library: sources libc6/groovy,now 2.32-0ubuntu3 amd64 [installed] GNU C Library: Shared libraries 

I am posting this here because I have tried doing the same operation with pycharm community downloaded from JetBrains’ website (the tarball), and that version works correctly with the same pyenv virtualenv.

Please let me know if I can provide more info to identify the issue

The text was updated successfully, but these errors were encountered:

Fixing «The SDK seems invalid» error when setting up PyCharm and PyQGIS?

Pycharm

I wanted to set up PyCharm the way this blog post explains: Setting up PyCharm for PyQGIS and Qt. I did everything as instructed but when it comes to adding project interpreters I got this error message: Does anyone have a solution to this?

16.1k 6 6 gold badges 46 46 silver badges 78 78 bronze badges
asked Oct 9, 2014 at 17:23
Krzysztof Żuraw Krzysztof Żuraw
167 1 1 gold badge 2 2 silver badges 7 7 bronze badges
You wouldn’t happen to be mixing 64 and 32 bit versions of QGIS and/or Python?
Oct 9, 2014 at 20:35
I have 64bit QGIS and I don’t know how to check what PyCharm version I have. BTW I got Win7 64bit
Oct 10, 2014 at 11:25

Take a look at this recent post and see if it provides any hints to your situation: spatialgalaxy.com/2014/10/09/…

Oct 10, 2014 at 17:55

Thank you very much! It worked by now I search way to remote debugging with pycharm but nothing worked.

Oct 12, 2014 at 10:49
Oct 19, 2016 at 10:05

4 Answers 4

From the comments it looked like the asker of this question was able to resolve their problem by reading a blog posting entitled A Quick Guide to Getting Started With PyQGIS on Windows.

In that blog the advice offered seemed to be:

We only changed the last line, adding the start statement with the path to the IDE (PyCharm). If you save this to something like pycharm.cmd, you can double-click on it to start PyCharm. The same method works for other IDEs, such as PyDev.

answered Dec 2, 2014 at 8:39
64.9k 29 29 gold badges 108 108 silver badges 330 330 bronze badges

The batch script from the A Quick Guide to Getting Started with PyQGIS on Windows as described in the comments and by @PolyGeo maybe outdated. The SDK seems invalid appear in PyCharm 2016.3 by using the script.

I suspect it needs more paths to be included especially (maybe) pip.exe path that exist in %OSGEO4W_ROOT%\apps\Python27\Scripts . So I include that and all other paths (not sure which one is required, maybe some unnecessary, but no time to test 1 by 1):

@echo off SET OSGEO4W_ROOT=C:\Program Files\QGIS 2.18 SET PYCHARM="C:\Program Files (x86)\JetBrains\PyCharm Community Edition 2016.3.2\bin\pycharm.exe" CALL %OSGEO4W_ROOT%\bin\o4w_env.bat CALL %OSGEO4W_ROOT%\apps\grass\grass-7.0.5\etc\env.bat path %PATH%;%OSGEO4W_ROOT%\apps\qgis\bin path %PATH%;%OSGEO4W_ROOT%\apps\grass\grass-7.0.5\lib SET PYTHONPATH=%PYTHONPATH%;%OSGEO4W_ROOT%\apps\bin SET PYTHONPATH=%PYTHONPATH%;%OSGEO4W_ROOT%\apps\qgis SET PYTHONPATH=%PYTHONPATH%;%OSGEO4W_ROOT%\apps\qgis\python SET PYTHONPATH=%PYTHONPATH%;%OSGEO4W_ROOT%\apps\Python27 SET PYTHONPATH=%PYTHONPATH%;%OSGEO4W_ROOT%\apps\Python27\Scripts SET PYTHONPATH=%PYTHONPATH%;%OSGEO4W_ROOT%\apps\Python27\Lib SET PYTHONPATH=%PYTHONPATH%;%OSGEO4W_ROOT%\apps\Python27\Lib\site-packages SET PYTHONPATH=%PYTHONPATH%;%OSGEO4W_ROOT%\apps\Python27\DLLs SET QGIS_PREFIX_PATH=%OSGEO4W_ROOT%\apps\qgis start "PyCharm aware of QGIS" /B %PYCHARM% %* 

Then it works. Edit the paths to match your environment.

Anyway, the recent how python/conda installation register PATH or PYTHONPATH in my environment, I follow the same for QGIS python paths in the script.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *