I tried to install tensorflow, but I got the following error:
My Command:
pip install tensorflow
The Error I got:
ERROR: Could not install packages due to an OSError:
[Errno 2] No such file or directory:
'C:\\Users\\sipha\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0
\\LocalCache\\local-packages\\Python310\\site-packages\\tensorflow\\include
\\external\\com_github_grpc_grpc\\src\\core\\ext\\filters\\client_channel
\\lb_policy\\grpclb\\client_load_reporting_filter.h'
HINT: This error might have occurred since this system does not have
Windows Long Path support enabled. You can find information on how to
enable this at https://pip.pypa.io/warnings/enable-long-paths
anyone know how to make new envirenment?
install tensoCMDrflow on windows, worked with CMD.
have python version 3.10
It seems like Long Path is disabled on your PC. Do the following to enable it, and then try to install Tensorflow.
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
in the registry editor(regedit), or you could just paste it in the search bar on top.LongPathsEnabled
This will enable Long Path support. Then try to install Tensorflow again.
You could reference the following article if you need any help https://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/ .
try conda install instead of pip install if you have conda installed
conda install tensorflow==2.6.0
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.