windows - Python som ikke admin?

Indlæg af Hanne Mølgaard Plasc

Problem



Jeg forsøger at pakke Anaconda med Tensorflow og Keras på Windows 10 til en klasse i vores laboratoriemiljø, som labs-computere ikke har administratoradgang, eller gør eleverne af sikkerhedsmæssige årsager.
Problemer med få linjer kode for at teste for at se, om installationen fungerer korrekt, fungerer kun, når du starter python som administrator:


>>> import keras
c:Anaconda3libsite-packagesh5py\_\_init\_\_.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 ==
np.dtype(float).type`.
from .\_conv import register\_converters as \_register\_converters
Using TensorFlow backend.


når du kører som ikke admin-konto:


>>> import keras
Traceback (most recent call last):
 File "c:Anaconda3libsite-packages
umpycore\_\_init\_\_.py", line 16, in <module>
from . import multiarray
ImportError: dynamic module does not define module export function (PyInit\_multiarray)
Traceback (most recent call last):


File "<stdin>", line 1, in <module>


File "c:Anaconda3libsite-packageskeras\_\_init\_\_.py", line 3, in <module> from . import utils


File "c:Anaconda3libsite-packageskerasutils\_\_init\_\_.py", line 2, in <module> from . import np\_utils File "c:Anaconda3libsite-packageskerasutils p\_utils.py", line 6, in <module> import numpy as np File "c:Anaconda3libsite-packages umpy\_\_init\_\_.py", line 142, in <module> from . import add\_newdocs File "c:Anaconda3libsite-packages umpyadd\_newdocs.py", line 13, in <module> from numpy.lib import add\_newdoc File "c:Anaconda3libsite-packages umpylib\_\_init\_\_.py", line 8, in <module> from .type\_check import * File "c:Anaconda3libsite-packages umpylib ype\_check.py", line 11, in <module> import numpy.core.numeric as \_nx File "c:Anaconda3libsite-packages umpycore\_\_init\_\_.py", line 26, in <module> raise ImportError(msg) ImportError: Importing the multiarray numpy extension module failed. Most likely you are trying to import a failed build of numpy. If you're working with a numpy git repo, try git clean -xdf (removes all files not under version control). Otherwise reinstall numpy.


Original error was: dynamic module does not define module export function (PyInit\_multiarray)

Bedste reference