2017-04-16 26 views
-1

我試圖安裝使用jQuery的pip install jquery,但收到此錯誤:想用Python下載jQuery的,但不能這樣做

> pip install jquery 

Collecting jquery 
    Downloading jquery-1.2.3.zip 
    Complete output from command python setup.py egg_info: 

    Traceback (most recent call last): 
     File "<string>", line 1, in <module> 
     File "/private/tmp/pip-build-id644a/jquery/setup.py", line 2, in <module> 
     from turbogears.finddata import find_package_data 
    ImportError: No module named turbogears.finddata 

---------------------------------------- 
Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-jvdejr/jquery/ 
+1

[我如何問一個好問題?](https://stackoverflow.com/help/how-to-ask) – Andreas

+0

認真嗎?這段代碼是什麼? –

回答

1

jQuery的沒有一個Python包分配。您試圖在您的問題中訪問的那個是this,與另一個軟件包TurboGears相關。

如果可能,請不要使用pip install來獲取jQuery。使用npm代替(需要):

$ npm install -g jquery 

bower

$ bower install jquery 

或者剛剛從here下載最新的分佈。

相關問題