Ciao, Il giorno 10 aprile 2017 17:41, Valentina Duca <valedu...@gmail.com> ha scritto:
> Buonasera, > sto cercando di utilizzare il modulo facebook su python 3.6 per MacOS. > Ogni volta che digito la riga “import facebook” e lo lancio mi restituisce > il seguente errore: > > import facebook > ModuleNotFoundError: No module named 'facebook’ > > ho cercato diverse SDK e ho provato ad installarle da terminale entrando > nella cartella contenente il file “setup.py” > e digitando il comando : > "python setup.py install —user” > mi installa un file di estensione .egg all’interno della cartella con > percorso "/Users/mionome/Library/Python/2.7/lib/python/site-packages” , > ma il problema persiste. > Come posso fare per scaricare correttamente queste SDK? > probabilmente il problema deriva dal fatto che stai installando con python 2.7 e cercando di eseguire con il 3.6, nel percorso del file egg si vede / Python/2.7/ virtualenv e virtualenvwrapper potrebbero esserti d'aiuto in questo caso (e in molti altri) -- "Unix IS user friendly. It's just selective about who its friend are" "Nevertheless I still think it’s a bad idea to make things harder for ourselves if we can avoid it." "C is quirky, flawed, and an enormous success." -- Dennis Ritchie "Shipping is a feature. A really important feature. Your product must have it." "There is no such a thing as a temporary change or workaround: In most cases, workarounds are tech debt." "La gatta frettolosa ha fatto i gattini ciechi"
_______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python