Open Anaconda Prompt as Administrator Step 3Ĭreate a conda virtual environment named tensorflow_env with the following command: C:\> conda create -n tensorflow_env python=3.7Īctivate the conda environment C:\> activate tensorflow_env In order to install tensorflow with Anaconda do the following: Step 1ĭownload Anaconda from here and install it. Type "help", "copyright", "credits" or "license" for more information. Versions (seg_env) C:\Users\antoi\Documents\Programming\Covent Garden\Segmentation>python -m pip list | findstr tensorflowĪnd python: (seg_env) C:\Users\antoi\Documents\Programming\Covent Garden\Segmentation>python The system cannot find the batch label specified - End "WARNING: Did not find VS in registry or in VS140COMNTOOLS env var - your compiler may not work" # All requested packages already installed.Ĭ:\Users\antoi\Documents\Programming\Covent Garden\Segmentation\sentiment>set "KERAS_BACKEND="Ĭ:\Users\antoi\Documents\Programming\Covent Garden\Segmentation\sentiment>python C:\Users\antoi\.conda\envs\seg_env\etc\keras\load_config.py 1>temp.txtĬ:\Users\antoi\Documents\Programming\Covent Garden\Segmentation\sentiment>set /p KERAS_BACKEND= 0del temp.txtĬ:\Users\antoi\Documents\Programming\Covent Garden\Segmentation\sentiment>python -c "import keras" 1>nul 2>&1Ĭ:\Users\antoi\Documents\Programming\Covent Garden\Segmentation\sentiment>if errorlevel 1 (Ĭ:\Users\antoi\Documents\Programming\Covent Garden\Segmentation\sentiment>SET DISTUTILS_USE_SDK=1Ĭ:\Users\antoi\Documents\Programming\Covent Garden\Segmentation\sentiment>SET MSSdk=1Ĭ:\Users\antoi\Documents\Programming\Covent Garden\Segmentation\sentiment>SET platform=Ĭ:\Users\antoi\Documents\Programming\Covent Garden\Segmentation\sentiment>IF /I = set "platform=true"Ĭ:\Users\antoi\Documents\Programming\Covent Garden\Segmentation\sentiment>if defined platform (set "VSREGKEY=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0" ) ELSE (set "VSREGKEY=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0" )Ĭ:\Users\antoi\Documents\Programming\Covent Garden\Segmentation\sentiment>for /F "skip=2 tokens=2,*" %A in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0" /v InstallDir') do SET "VSINSTALLDIR=%B"ĮRROR: The system was unable to find the specified registry key or value.Ĭ:\Users\antoi\Documents\Programming\Covent Garden\Segmentation\sentiment>if "" = "" (set "VSINSTALLDIR=" )Ĭ:\Users\antoi\Documents\Programming\Covent Garden\Segmentation\sentiment>if "" = "" (ĮCHO "WARNING: Did not find VS in registry or in VS140COMNTOOLS env var - your compiler may not work" I also tried conda install -c conda-forge tensorflow (seg_env) C:\Users\antoi\Documents\Programming\Covent Garden\Segmentation\sentiment> conda install -c conda-forge tensorflowĬollecting package metadata (current_repodata.json): done You should consider upgrading via the 'python -m pip install -upgrade pip' command. WARNING: You are using pip version 19.2.3, however version 20.0.2 is available. I tried to install it with python -m pip install tensorflow-text, but it gave me: (seg_env) C:\Users\antoi\Documents\Programming\Covent Garden\Segmentation\sentiment>python -m pip install tensorflow-textĮRROR: Could not find a version that satisfies the requirement tensorflow-text (from versions: none)ĮRROR: No matching distribution found for tensorflow-text ModuleNotFoundError: No module named 'tensorflow_text' > 10 from tensorflow_text import SentencepieceTokenizer ModuleNotFoundError Traceback (most recent call last) Or !python -m pip install tensorflow_textĪnd I get in jupyter:. However by downloading the necessary libraries as tensorflow_text: Setup Environment I'm trying to reproduce the notebook on Google Multilingual Universal Encoder.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |