我在OS X 10.10上通過HomeBrew木桶安裝了Pycharm。我聽說python-skeleton是有用的,所以cd
編輯它找到它有什麼。但每次我鍵入cd /opt/homebrew-cask/Caskroom/pycharm/4.5/PyCharm.app/Contents/helpers/python-skeletons/
時間得到這個回溯:爲什麼shell返回Python錯誤追蹤當我cd到python骨架目錄
Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 548, in <module>
main()
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 527, in main
known_paths = removeduppaths()
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 110, in removeduppaths
dir, dircase = makepath(dir)
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 80, in makepath
dir = os.path.join(*paths)
AttributeError: 'module' object has no attribute 'path'
還有什麼是正常的,這隻會出現在我的CD放入專用目錄。
我正在使用zsh和oh-my-zsh。提到,我發現雙向搜索作爲@ skyline75489後,它在我的.zshrc文件有毛病autojump配置:
[[ -s $(brew --prefix)/etc/profile.d/autojump.sh ]] && . $(brew --prefix)/etc/profile.d/autojump.sh
爲什麼地球上的蟒蛇程序在你甚至沒有運行時會引發錯誤? – skyline75489
@ skyline75489是的,這是我最感興趣的。我想也許有一個由zsh或其他東西的鉤子? – kxxoling
這是可能的。您可以使用bash來嘗試它,或者用空的替換當前的.zshrc。 – skyline75489