Jump to content

Проблема с установкой django на python 3


Recommended Posts

Пытался развернуть сабж.

Под 2.7 все установилось без ошибок, причем я смог даже разработческий сервер запустить.

При установки под 3.6 ошибки начинаются с попытки обновить pip3.

Не могли бы подсказать, что не так?

~ # opkg install python3-pip
Installing python3-pip (9.0.1) to root...
Downloading http://pkg.entware-keenetic.ru/binaries/keenle/python3-pip_9.0.1_keenle.ipk
Installing python3-setuptools (28.8.0) to root...
Downloading http://pkg.entware-keenetic.ru/binaries/keenle/python3-setuptools_28.8.0_keenle.ipk
Installing python-pip-conf (2.7.14-2) to root...
Downloading http://pkg.entware-keenetic.ru/binaries/keenle/python-pip-conf_2.7.14-2_keenle.ipk
Configuring python-pip-conf.
Configuring python3-setuptools.
Configuring python3-pip.
~ #  pip3 install --upgrade pip setuptools
Collecting pip
  Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
    100% |████████████████████████████████| 1.3MB 14kB/s
Collecting setuptools
  Downloading setuptools-38.4.0-py2.py3-none-any.whl (489kB)
    100% |████████████████████████████████| 491kB 37kB/s
Installing collected packages: pip, setuptools
Successfully installed pip-9.0.1 setuptools-38.4.0
Exception:
Traceback (most recent call last):
  File "/opt/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/opt/lib/python3.6/site-packages/pip/commands/install.py", line 385, in run
    requirement_set.cleanup_files()
  File "/opt/lib/python3.6/site-packages/pip/utils/build.py", line 38, in __exit__
    self.cleanup()
  File "/opt/lib/python3.6/site-packages/pip/utils/build.py", line 42, in cleanup
    rmtree(self.name)
  File "/opt/lib/python3.6/site-packages/pip/_vendor/retrying.py", line 49, in wrapped_f
    return Retrying(*dargs, **dkw).call(f, *args, **kw)
  File "/opt/lib/python3.6/site-packages/pip/_vendor/retrying.py", line 212, in call
    raise attempt.get()
  File "/opt/lib/python3.6/site-packages/pip/_vendor/retrying.py", line 247, in get
    six.reraise(self.value[0], self.value[1], self.value[2])
  File "/opt/lib/python3.6/site-packages/pip/_vendor/six.py", line 686, in reraise
    raise value
  File "/opt/lib/python3.6/site-packages/pip/_vendor/retrying.py", line 200, in call
    attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
  File "/opt/lib/python3.6/site-packages/pip/utils/__init__.py", line 102, in rmtree
    onerror=rmtree_errorhandler)
  File "/shutil.py", line 480, in rmtree
  File "/shutil.py", line 402, in _rmtree_safe_fd
  File "/shutil.py", line 399, in _rmtree_safe_fd
OSError: [Errno 22] Invalid argument: '/opt/tmp/pip-build-mbm_tixd'

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...