2015-11-21 15 views
11

quando corronon possono installare SciPy - blocca su "Esecuzione setup.py install per SciPy"

sudo pip install -U scipy 

viene prima scaricato e poi si va avanti per mostrare

Running setup.py install for scipy 

ma si congela lì. Ho provato ad aggiornare il pip stesso. Ha funzionato bene La mia versione pip è 1.5.4

L'unico errore che ottengo è InsecurePlatforWarning. L'output completo è il seguente:

[email protected]:~$ sudo pip install -U scipy 
The directory '/home/tom/.cache/pip/http' or its parent directory 
is not owned by the current user and the cache has been disabled. 
Please check the permissions and owner of that directory. If 
executing pip with sudo, you may want sudo's -H flag. 
The directory '/home/tom/.cache/pip' or its parent directory is not 
owned by the current user and caching wheels has been disabled. 
check the permissions and owner of that directory. If executing pip with 
sudo, you may want sudo's -H flag. 
Collecting scipy 
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: 
InsecurePlatformWarning: A true SSLContext object is not available. 
This prevents urllib3 from configuring SSL appropriately and 
may cause certain SSL connections to fail. For more information, see 
https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. 
InsecurePlatformWarning 
Downloading scipy-0.16.1.tar.gz (12.2MB) 
    100% |████████████████████████████████| 12.2MB 32kB/s 
Installing collected packages: scipy 
    Running setup.py install for scipy 
+6

Quanto tempo hai aspettato? scipy ha un sacco di estensioni C/C++/Fortran che possono richiedere molto tempo per essere compilate. Puoi visualizzare i messaggi del compilatore usando '~ $ pip install -v scipy'. –

+0

sì hai ragione. ci sono voluti diversi minuti ma ora è finito – Tom83B

risposta

31

Ci è voluto un tempo inaspettatamente lungo, ma è terminato dopo diversi minuti. Quindi il problema è risolto.

+1

Lo stesso qui - ci sono voluti circa 4-5 minuti per l'installazione. – pauloz1890

+6

Questa è probabilmente la risposta più semplice che abbia mai messo a punto. Ma uno sguardo a 'top' ha mostrato il 100% di utilizzo della CPU da parte di cc1plus, quindi presumo che la compilazione sia al lavoro. – Richard

+0

dopo aver letto la tua risposta, installazione terminata. – buzhidao

Problemi correlati