به بخش پرسش و پاسخ یادگیری عمیق خوش آمدید,
این نسخه آزمایشی سایت است.
لطفا به نکات زیر توجه کنید:
  • برای ارتباط با مدیران میتوانید از صفحه مدیران اقدام کنید.
  • سوال و جواب ها باید به زبان فارسی باشند. استفاده از زبان انگلیسی یا فینگلیش برای پاسخ دادن مجاز نیست.
  • لطفا بعد از پرسش سوال لینک سوال خود را در گرو تلگرام (Iran Deep Learning Group) معرفی کنید تا سریعتر به جواب برسید. برای دسترسی به آخرین لینک از منابع یادگیری استفاده کنید
  • لطفا بجای عکس از متن استفاده کنید. اگر متون طولانی هستند از سایت pastebin.com برای اپلود استفاده کرده و لینک حاصل را در سوال خود قرار دهید. برای قرار دادن تصویر ، از بخش ارسال تصویر ادیتور سایت استفاده کنید.
  • بعد از دریافت پاسخ، بهترین پاسخ را از طریق کلیک بر روی علامت تیک انتخاب کنید
  • اگر با خطا و یا مشکلی مواجه شدید از بخش تماس با ما در انتهای صفحه و یا ایمیل Coderx7@gmail.com موضوع را اطلاع دهید.

با تشکر

دسته بندی ها

0 امتیاز

سلام وقتتون بخیر
در طی اجرای مراحل نصب تنسورفلو همه چیز خوب پیش رفت تا بعد از اجرای دستورات زیر
**

farzaneh@farzaneh-N43SL:~$ sudo apt-get install python3-venv[sudo] password for farzaneh: Reading package lists... Done Building dependency tree Reading state information... Done python3-venv is already the newest version (3.5.1-3). 0 upgraded, 0 newly installed, 0 to remove and 364 not upgraded. farzaneh@farzaneh-N43SL:~$ python3 -m venv --system-site-packages /media/farzaneh/7404A025049FE7FE/PHD/nasb tensorflow/tensorflow_vp3/ farzaneh@farzaneh-N43SL:~$ source /media/farzaneh/7404A025049FE7FE/PHD/nasb tensorflow/tensorflow_vp3/bin/activate bash: source: /media/farzaneh/7404A025049FE7FE/PHD/nasb: is a directory
بعد از اجرای دستور
pip3 install --upgrade tensorflow
نتایج زیر حاصل می شود:
Collecting tensorflow
Using cached tensorflow-1.3.0-cp35-cp35m-manylinux1_x86_64.whl
Requirement already up-to-date: wheel>=0.26 in /usr/local/lib/python3.5/dist-packages (from tensorflow)
Collecting tensorflow-tensorboard<0.2.0,>=0.1.0 (from tensorflow)
Using cached tensorflow_tensorboard-0.1.8-py3-none-any.whl
Collecting protobuf>=3.3.0 (from tensorflow)
Using cached protobuf-3.4.0-cp35-cp35m-manylinux1_x86_64.whl
Collecting six>=1.10.0 (from tensorflow)
Using cached six-1.11.0-py2.py3-none-any.whl
Collecting numpy>=1.11.0 (from tensorflow)
Using cached numpy-1.13.3-cp35-cp35m-manylinux1_x86_64.whl
Collecting markdown>=2.6.8 (from tensorflow-tensorboard<0.2.0,>=0.1.0->tensorflow)
Collecting bleach==1.5.0 (from tensorflow-tensorboard<0.2.0,>=0.1.0->tensorflow)
Using cached bleach-1.5.0-py2.py3-none-any.whl
Collecting html5lib==0.9999999 (from tensorflow-tensorboard<0.2.0,>=0.1.0->tensorflow)
Collecting werkzeug>=0.11.10 (from tensorflow-tensorboard<0.2.0,>=0.1.0->tensorflow)
Using cached Werkzeug-0.12.2-py2.py3-none-any.whl
Requirement already up-to-date: setuptools in /usr/local/lib/python3.5/dist-packages (from protobuf>=3.3.0->tensorflow)
Installing collected packages: markdown, six, protobuf, html5lib, bleach, werkzeug, numpy, tensorflow-tensorboard, tensorflow
Exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/pip/basecommand.py", line 215, in main

status = self.run(options, args)

File "/usr/local/lib/python3.5/dist-packages/pip/commands/install.py", line 342, in run

prefix=options.prefix_path,

File "/usr/local/lib/python3.5/dist-packages/pip/req/req_set.py", line 784, in install

**kwargs

File "/usr/local/lib/python3.5/dist-packages/pip/req/req_install.py", line 851, in install

self.move_wheel_files(self.source_dir, root=root, prefix=prefix)

File "/usr/local/lib/python3.5/dist-packages/pip/req/req_install.py", line 1064, in move_wheel_files

isolated=self.isolated,

File "/usr/local/lib/python3.5/dist-packages/pip/wheel.py", line 345, in move_wheel_files

clobber(source, lib_dir, True)

File "/usr/local/lib/python3.5/dist-packages/pip/wheel.py", line 316, in clobber

ensure_dir(destdir)

File "/usr/local/lib/python3.5/dist-packages/pip/utils/init.py", line 83, in ensure_dir

os.makedirs(path)

File "/usr/lib/python3.5/os.py", line 241, in makedirs

mkdir(name, mode)

PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/markdown'
بعد از دیدن این نتیجه مجددا دستور را به صورت زیر اجرا گرفتم
sudo install --upgrade tensorflow
نتیجه این شد:
install: unrecognized option '--upgrade'
Try 'install --help' for more information.
مجددا دستور را به صورت زیر تغیرر دادم و اجرا کردم
sudo pip3 install --upgrade tensorflow
خروجی که دریافت کردم این بود :
The directory '/home/farzaneh/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/farzaneh/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting tensorflow
Downloading tensorflow-1.3.0-cp35-cp35m-manylinux1_x86_64.whl (43.1MB)

26% |████████▋                       | 11.6MB 83kB/s eta 0:06:20Exception:

Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/pip/_vendor/requests/packages/urllib3/response.py", line 232, in _error_catcher

yield

File "/usr/local/lib/python3.5/dist-packages/pip/_vendor/requests/packages/urllib3/response.py", line 314, in read

data = self._fp.read(amt)

File "/usr/local/lib/python3.5/dist-packages/pip/_vendor/cachecontrol/filewrapper.py", line 60, in read

data = self.__fp.read(amt)

File "/usr/lib/python3.5/http/client.py", line 448, in read

n = self.readinto(b)

File "/usr/lib/python3.5/http/client.py", line 488, in readinto

n = self.fp.readinto(b)

File "/usr/lib/python3.5/socket.py", line 575, in readinto

return self._sock.recv_into(b)

File "/usr/lib/python3.5/ssl.py", line 929, in recv_into

return self.read(nbytes, buffer)

File "/usr/lib/python3.5/ssl.py", line 791, in read

return self._sslobj.read(len, buffer)

File "/usr/lib/python3.5/ssl.py", line 575, in read

v = self._sslobj.read(len, buffer)

socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/pip/basecommand.py", line 215, in main

status = self.run(options, args)

File "/usr/local/lib/python3.5/dist-packages/pip/commands/install.py", line 324, in run

requirement_set.prepare_files(finder)

File "/usr/local/lib/python3.5/dist-packages/pip/req/req_set.py", line 380, in prepare_files

ignore_dependencies=self.ignore_dependencies))

File "/usr/local/lib/python3.5/dist-packages/pip/req/req_set.py", line 620, in _prepare_file

session=self.session, hashes=hashes)

File "/usr/local/lib/python3.5/dist-packages/pip/download.py", line 821, in unpack_url

hashes=hashes

File "/usr/local/lib/python3.5/dist-packages/pip/download.py", line 659, in unpack_http_url

hashes)

File "/usr/local/lib/python3.5/dist-packages/pip/download.py", line 882, in _download_http_url

_download_url(resp, link, content_file, hashes)

File "/usr/local/lib/python3.5/dist-packages/pip/download.py", line 603, in _download_url

hashes.check_against_chunks(downloaded_chunks)

File "/usr/local/lib/python3.5/dist-packages/pip/utils/hashes.py", line 46, in check_against_chunks

for chunk in chunks:

File "/usr/local/lib/python3.5/dist-packages/pip/download.py", line 571, in written_chunks

for chunk in chunks:

File "/usr/local/lib/python3.5/dist-packages/pip/utils/ui.py", line 139, in iter

for x in it:

File "/usr/local/lib/python3.5/dist-packages/pip/download.py", line 560, in resp_read

decode_content=False):

File "/usr/local/lib/python3.5/dist-packages/pip/_vendor/requests/packages/urllib3/response.py", line 357, in stream

data = self.read(amt=amt, decode_content=decode_content)

File "/usr/local/lib/python3.5/dist-packages/pip/_vendor/requests/packages/urllib3/response.py", line 324, in read

flush_decoder = True

File "/usr/lib/python3.5/contextlib.py", line 77, in exit

self.gen.throw(type, value, traceback)

File "/usr/local/lib/python3.5/dist-packages/pip/_vendor/requests/packages/urllib3/response.py", line 237, in _error_catcher

raise ReadTimeoutError(self._pool, None, 'Read timed out.')

pip._vendor.requests.packages.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out.
حالا چه کنم ؟


**


توسط (219 امتیاز)

1 پاسخ

0 امتیاز

سلام
اگه مشکل pip رو میتونی با دستور sudo apt-get install python-pip رفع کنی

توسط (389 امتیاز)
...