简体   繁体   English

Sublime Text Python构建和打开终端需要很长时间

[英]Sublime Text Python builds and opening a terminal takes very long time

I have been learning a lot of python recently using sublime text on a mac, I installed python 3 and have mainly been using that but as a lot of documentation is in python 2.7 and it comes with the Mac I decided to start using 2.7 instead. 最近,我在Mac上使用sublime文本学习了很多python,我安装了python 3,并且主要在使用python 3,但是由于python 2.7中包含大量文档,因此我决定在Mac上附带使用2.7。 I have quite a few libraries installed (for python 3 and for 2.7) When I load my terminal it takes a good 15 seconds for it to get to the prompt and it takes the same amount of time to build python 2.7 from sublime text before it starts executing the code. 我已经安装了很多库(针对python 3和2.7),当我加载终端时,需要花15秒钟的时间才能到达提示,并且从之前的崇高文本构建python 2.7所需的时间也相同开始执行代码。

I know this post is probably too vague but if anyone has had a similar experience or could suggest anything to point me in the right direction I would really appreciate it. 我知道这篇文章可能太含糊了,但是如果有人有类似的经历或可以提出任何建议以指出正确的方向,我将非常感激。

Thanks. 谢谢。

Run python -vvv to dump out imports Python is doing when it starts up. 运行python -vvv转储导入时Python所做的导入。 If the slowdown is by a third party library this should give a hint. 如果速度下降是由第三方库造成的,则应给出提示。

Check your ~/.bashrc script for duplicate entries (see comments below). 检查~/.bashrc脚本中是否有重复的条目(请参见下面的注释)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM