سلام. ببخشید من tensorflow-gpu رو طبق روال سایت تنسورفلو از طریق آناکوندا روی ویندوز نصب کردم:
pip install --ignore-installed --upgrade tensorflow-gpu
هنگام import کردن در محیط cmd خطا نمیده اما وقتی در محیط spyder(هم با کوندا و هم pip نصب کردم)دستور ایمپورت تنسورفلو رو میزنم خطای زیر رو میده:
ModuleNotFoundError: No module named 'tensorflow'
هنگام اییمپورت در محیط pycharm هم همون ارور رو میده .در محیط ترمینال pycharm دستور نصب تنسورفلو رو زدم اما آخراش ارور داد:
Collecting tensorflow-gpu
Using cached tensorflow_gpu-1.4.0-cp36-cp36m-win_amd64.whl
Collecting six>=1.10.0 (from tensorflow-gpu)
Using cached six-1.11.0-py2.py3-none-any.whl
Collecting tensorflow-tensorboard<0.5.0,>=0.4.0rc1 (from tensorflow-gp
u)
Using cached tensorflow_tensorboard-0.4.0rc2-py3-none-any.whl
Collecting enum34>=1.1.6 (from tensorflow-gpu)
Using cached enum34-1.1.6-py3-none-any.whl
Collecting wheel>=0.26 (from tensorflow-gpu)
Using cached wheel-0.30.0-py2.py3-none-any.whl
Collecting protobuf>=3.3.0 (from tensorflow-gpu)
Using cached protobuf-3.4.0-py2.py3-none-any.whl
Collecting numpy>=1.12.1 (from tensorflow-gpu)
Using cached numpy-1.13.3-cp36-none-win_amd64.whl
Collecting werkzeug>=0.11.10 (from tensorflow-tensorboard<0.5.0,>=0.4.
0rc1->tensorflow-gpu)
Using cached Werkzeug-0.12.2-py2.py3-none-any.whl
Collecting bleach==1.5.0 (from tensorflow-tensorboard<0.5.0,>=0.4.0rc1
->tensorflow-gpu)
Using cached bleach-1.5.0-py2.py3-none-any.whl
Collecting markdown>=2.6.8 (from tensorflow-tensorboard<0.5.0,>=0.4.0r
c1->tensorflow-gpu)
Collecting html5lib==0.9999999 (from tensorflow-tensorboard<0.5.0,>=0.
4.0rc1->tensorflow-gpu)
Collecting setuptools (from protobuf>=3.3.0->tensorflow-gpu)
Using cached setuptools-36.6.0-py2.py3-none-any.whl
Installing collected packages: six, wheel, setuptools, protobuf, werkz
eug, html5lib, bleach, numpy, markdown, tensorflow-tensorboard, enum34
, tensorflow-gpu
Exception:
Traceback (most recent call last):
File "C:\Anaconda3\lib\site-packages\pip\basecommand.py", line 215,
in main
status = self.run(options, args)
File "C:\Anaconda3\lib\site-packages\pip\commands\install.py", line
342, in run
prefix=options.prefix_path,
File "C:\Anaconda3\lib\site-packages\pip\req\req_set.py", line 784,
in install
**kwargs
File "C:\Anaconda3\lib\site-packages\pip\req\req_install.py", line 8
51, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "C:\Anaconda3\lib\site-packages\pip\req\req_install.py", line 1
064, in move_wheel_files
isolated=self.isolated,
File "C:\Anaconda3\lib\site-packages\pip\wheel.py", line 345, in mov
e_wheel_files
clobber(source, lib_dir, True)
File "C:\Anaconda3\lib\site-packages\pip\wheel.py", line 323, in
clobber
shutil.copyfile(srcfile, destfile)
File "C:\Anaconda3\lib\shutil.py", line 121, in copyfile
with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: 'C:\\Anaconda3\\Lib
\\site-packages\\numpy\\core\\multiarray.cp36-win_amd64.pyd'
امکان نصب این پکیج از طریق project interpreter نیست
ممنون میشم راهنمایی کنیم.تشکر