簡體   English   中英

python扭曲錯誤“導入pkg_resources”?

[英]python twisted error “import pkg_resources”?

我嘗試學習python twisted。我在運行任何twisted程序時遇到一些錯誤,我無法理解系統或python twisted中的問題是什么

並且有錯誤::

/usr/lib/python2.7/dist-packages/zope/__init__.py:3: 
UserWarning:Module twisted was already imported from    
/usr/lib/python2.7/dist-packages/twisted/__init__.pyc, but 
/usr/local/lib/python2.7/dist-packages/autobahn-0.10.5_2-py2.7.egg 
is being added to sys.path
import pkg_resources

屏幕截圖:

終端屏幕截圖

這不是一個錯誤,只是一個警告(因此出現UserWarning ),並且與您安裝Autobahn的方式有關。 在我看來,您是使用sudo pip install安裝它的,您幾乎應該永遠不要這樣做; 而是sudo apt-get installpip install內容pip installvirtualenv

無論如何,它是無害的,您可以忽略它。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM