(python)pycharm运行报错unable to load the file system codec ImportError ?

来源:互联网  时间:2017/5/10 0:52:51

关于网友提出的“ (python)pycharm运行报错unable to load the file system codec ImportError ?”问题疑问,本网通过在网上对“ (python)pycharm运行报错unable to load the file system codec ImportError ?”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:

问题: (python)pycharm运行报错unable to load the file system codec ImportError ?
描述:

我之前装了几个版本的python,感觉太乱就全卸载了,现在新安装好python3.4.3后
在cmd输入python都正常

但是在pycharm中运行空文件都报错
报错信息:
Fatal Python error: Py_Initialize: unable to load the file system codec
ImportError: No module named 'encodings'

Current thread 0x000033c4 (most recent call first):


解决方案1:

用管理员权限安装一次,然后配置对环境变量试试

解决方案2:

在pycharm中的project structure中设置你的python解释器路径,如果还不行再给python的运行添加环境变量。实在不行,可以试试通过pycharm中的install repo来安装这个模块

上一篇请教一下,python怎么连接websocket
下一篇Python怎么实现文件夹内多txt合并?
明星图片
相关文章
《 (python)pycharm运行报错unable to load the file system codec ImportError ?》由码蚁之家搜集整理于网络,
联系邮箱:mxgf168#qq.com(#改为@)