2016-11-30 44 views
3

我使用一個mac,並且我有兩個版本的python(2.7和3.5)。我安裝scitools使用pipimport from scitools import *與2.7但不3.5。我想知道是因爲鏈接還是其他原因。我已經包含了一個截圖。謝謝!Python:如何讓不同版本的python訪問相同的模塊?

enter image description here

編輯:

pip3 install scitools給出:

enter image description here

+1

您需要使用'pip3'安裝'scitools'才能使用python3 –

+0

@MoinuddinQuadri感謝您的快速回復。我用截圖進行了編輯。我收到一個錯誤,表示scitools沒有匹配的發行版 – Johnathan

回答

2

scitools需要Python 2.7(來源:github)。它顯然沒有得到積極的維護,所以不要等待Python 3的支持。

+0

非常感謝您的幫助。我不會在周圍等待!大聲笑:) – Johnathan

相關問題