Why do I get an #39;SDK seems invalid#39; error when setting up my Project Interpreter in PyCharm?(为什么在 PyCharm 中设置我的项目解释器时出现“SDK 似乎无效错误?)
问题描述
我尝试在 Pycharm 中设置项目解释器 Python 3.5 并收到 SDK 错误?
I try to set up project interpteter Python 3.5 in Pycharm and get an SDK error?
有解决办法吗?
推荐答案
你用pycharm打开后是不是把整个项目都搬走了?如果是这样,只需删除 .idea/* (在您的项目下运行 rm -r .idea)
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)
这个问题是由于:pycharm第一次导入项目后会在项目下创建一个.idea文件.因此,在您移动项目后,其中的路径将保持旧路径.因此,pycharm 将继续尝试导入保存在 .idea/* 中的old_path/venv/bin/activate"
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/*
这篇关于为什么在 PyCharm 中设置我的项目解释器时出现“SDK 似乎无效"错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:为什么在 PyCharm 中设置我的项目解释器时出现“
基础教程推荐
- 使用生成器和迭代器时 Python 多循环失败 2022-01-01
- 将 x 轴刻度更改为自定义字符串 2022-01-01
- 在 Celery 工作人员中捕获 Heroku SIGTERM 以优雅地关 2022-01-01
- 尝试制作WhatsApp机器人 2022-01-01
- Discord.py 缺少必需的参数 2022-01-01
- 用 Python 编写 Fortran 无格式文件 2022-01-01
- numpy float:比算术运算中内置的慢 10 倍? 2022-01-01
- 由Python将MP3转换为MIDI(类型错误:无法加载插件:mtg-Melodia:Melodia) 2022-01-01
- 与常规 dict 相比,Python manager.dict() 非常慢 2022-01-01
- pyserial - 可以从线程 a 写入串行端口,是否阻塞从线程 b 读取? 2022-01-01
