解决PyCharm python错误-Dyld:库未加载 [英] Resolving PyCharm python error - dyld: Library not loaded

查看:98
本文介绍了解决PyCharm python错误-Dyld:库未加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用macOS Sierra V.10.12.6下的PyCharm 2018.3.2 Community Edition

I am using PyCharm 2018.3.2 Community Edition, under macOS Sierra V. 10.12.6

今天,我在Python控制台中发现了以下错误消息:

Today I found the following error message in Python-Console:

dyld: Library not loaded: /usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/Python
  Referenced from: /Users/tleis/PycharmProjects/BioInformaticsI/venv/bin/python
  Reason: image not found

经过研究,我怀疑原因是由于我运行的一些与HomeBrew相关的命令.

After some research, I doubt the reason is due to some commands I run related to HomeBrew.

推荐答案

该错误消息闻起来像是您可能已更新了Python版本,这有时会破坏具有这些症状的virtualenvs.

The error message smells like you've probably updated your Python version, which can occasionally break virtualenvs with those symptoms.

最简单的解决方法是删除并重新创建virtualenv.

The easiest fix is to just delete and recreate the virtualenv.

这篇关于解决PyCharm python错误-Dyld:库未加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆