V
@crispyoz said in я не могу установить пакет (pip install pycrypto):
pycrypto
root@Omega-318B:/etc/opkg# vi distfeeds.conf
root@Omega-318B:/etc/opkg# opkg update
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/targets/ramips/mt76x8/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/targets/ramips/mt76x8/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/base/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/luci/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/onion/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/onion/Packages.gz
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/routing/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/telephony/Packages.sig
Signature check passed.
Downloading http://repo.onioniot.com/omega2/packages/core/Packages.gz
Updated list of available packages in /var/opkg-lists/omega2_core
Downloading http://repo.onioniot.com/omega2/packages/core/Packages.sig
Signature check passed.
Downloading http://repo.onioniot.com/omega2/packages/base/Packages.gz
Updated list of available packages in /var/opkg-lists/omega2_base
Downloading http://repo.onioniot.com/omega2/packages/base/Packages.sig
Signature check passed.
Downloading http://repo.onioniot.com/omega2/packages/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/omega2_packages
Downloading http://repo.onioniot.com/omega2/packages/packages/Packages.sig
Signature check passed.
Downloading http://repo.onioniot.com/omega2/packages/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/omega2_routing
Downloading http://repo.onioniot.com/omega2/packages/routing/Packages.sig
Signature check passed.
Downloading http://repo.onioniot.com/omega2/packages/onion/Packages.gz
Updated list of available packages in /var/opkg-lists/omega2_onion
Downloading http://repo.onioniot.com/omega2/packages/onion/Packages.sig
Signature check passed.
Collected errors:
opkg_download: Failed to download http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/onion/Packages.gz, wget returned 8.
root@Omega-318B:/etc/opkg# opkg install python
Installing python (2.7.17-1) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/python_2.7.17-1_mipsel_24kc.ipk
Multiple packages (libpthread and libpthread) providing same name marked HOLD or PREFER. Using latest.
Multiple packages (libpthread and libpthread) providing same name marked HOLD or PREFER. Using latest.
Multiple packages (libpthread and libpthread) providing same name marked HOLD or PREFER. Using latest.
Installing python-base (2.7.17-1) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/python-base_2.7.17-1_mipsel_24kc.ipk
Installing libffi (3.2.1-3) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/libffi_3.2.1-3_mipsel_24kc.ipk
Installing python-light (2.7.17-1) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/python-light_2.7.17-1_mipsel_24kc.ipk
Installing python-ctypes (2.7.17-1) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/python-ctypes_2.7.17-1_mipsel_24kc.ipk
Installing python-pydoc (2.7.17-1) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/python-pydoc_2.7.17-1_mipsel_24kc.ipk
Installing python-multiprocessing (2.7.17-1) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/python-multiprocessing_2.7.17-1_mipsel_24kc.ipk
Installing python-logging (2.7.17-1) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/python-logging_2.7.17-1_mipsel_24kc.ipk
Installing python-codecs (2.7.17-1) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/python-codecs_2.7.17-1_mipsel_24kc.ipk
Installing libsqlite3 (3260000-4) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/libsqlite3_3260000-4_mipsel_24kc.ipk
Installing python-sqlite3 (2.7.17-1) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/python-sqlite3_2.7.17-1_mipsel_24kc.ipk
Installing libgdbm (1.11-1) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/libgdbm_1.11-1_mipsel_24kc.ipk
Installing python-gdbm (2.7.17-1) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/python-gdbm_2.7.17-1_mipsel_24kc.ipk
Installing python-email (2.7.17-1) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/python-email_2.7.17-1_mipsel_24kc.ipk
Installing python-distutils (2.7.17-1) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/python-distutils_2.7.17-1_mipsel_24kc.ipk
Installing python-openssl (2.7.17-1) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/python-openssl_2.7.17-1_mipsel_24kc.ipk
Installing python-xml (2.7.17-1) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/python-xml_2.7.17-1_mipsel_24kc.ipk
Installing python-compiler (2.7.17-1) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/python-compiler_2.7.17-1_mipsel_24kc.ipk
Installing libxml2 (2.9.9-1) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/libxml2_2.9.9-1_mipsel_24kc.ipk
Installing libdb47 (4.7.25.4.NC-5) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/libdb47_4.7.25.4.NC-5_mipsel_24kc.ipk
Installing python-db (2.7.17-1) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/python-db_2.7.17-1_mipsel_24kc.ipk
Installing python-decimal (2.7.17-1) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/python-decimal_2.7.17-1_mipsel_24kc.ipk
Installing python-unittest (2.7.17-1) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/python-unittest_2.7.17-1_mipsel_24kc.ipk
Installing python-ncurses (2.7.17-1) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/python-ncurses_2.7.17-1_mipsel_24kc.ipk
Configuring python-base.
Configuring libffi.
Configuring python-light.
Configuring python-codecs.
Configuring libxml2.
Configuring libdb47.
Configuring python-db.
Configuring python-decimal.
Configuring python-distutils.
Configuring python-pydoc.
Configuring python-ctypes.
Configuring python-multiprocessing.
Configuring python-logging.
Configuring libsqlite3.
Configuring python-sqlite3.
Configuring libgdbm.
Configuring python-gdbm.
Configuring python-email.
Configuring python-openssl.
Configuring python-xml.
Configuring python-compiler.
Configuring python-unittest.
Configuring python-ncurses.
Configuring python.
root@Omega-318B:/etc/opkg# opkg install python-pip
Installing python-pip (19.2.3-1) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/python-pip_19.2.3-1_mipsel_24kc.ipk
Installing python-setuptools (41.2.0-1) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/python-setuptools_41.2.0-1_mipsel_24kc.ipk
Installing python-pip-conf (0.1-1) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/python-pip-conf_0.1-1_mipsel_24kc.ipk
Configuring python-setuptools.
Configuring python-pip-conf.
Configuring python-pip.
root@Omega-318B:/etc/opkg# opkg install python3
Installing python3 (3.6.10-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/python3_3.6.10-1_mipsel_24kc.ipk
Multiple packages (libpthread and libpthread) providing same name marked HOLD or PREFER. Using latest.
Installing python3-base (3.6.10-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/python3-base_3.6.10-1_mipsel_24kc.ipk
Installing python3-light (3.6.10-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/python3-light_3.6.10-1_mipsel_24kc.ipk
Installing python3-unittest (3.6.10-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/python3-unittest_3.6.10-1_mipsel_24kc.ipk
Installing python3-ncurses (3.6.10-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/python3-ncurses_3.6.10-1_mipsel_24kc.ipk
Installing python3-ctypes (3.6.10-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/python3-ctypes_3.6.10-1_mipsel_24kc.ipk
Installing python3-pydoc (3.6.10-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/python3-pydoc_3.6.10-1_mipsel_24kc.ipk
Installing python3-multiprocessing (3.6.10-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/python3-multiprocessing_3.6.10-1_mipsel_24kc.ipk
Installing python3-codecs (3.6.10-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/python3-codecs_3.6.10-1_mipsel_24kc.ipk
Installing python3-gdbm (3.6.10-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/python3-gdbm_3.6.10-1_mipsel_24kc.ipk
Installing python3-xml (3.6.10-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/python3-xml_3.6.10-1_mipsel_24kc.ipk
Installing python3-sqlite3 (3.6.10-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/python3-sqlite3_3.6.10-1_mipsel_24kc.ipk
Installing python3-logging (3.6.10-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/python3-logging_3.6.10-1_mipsel_24kc.ipk
Installing python3-email (3.6.10-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/python3-email_3.6.10-1_mipsel_24kc.ipk
Installing python3-distutils (3.6.10-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/python3-distutils_3.6.10-1_mipsel_24kc.ipk
Installing python3-openssl (3.6.10-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/python3-openssl_3.6.10-1_mipsel_24kc.ipk
Installing python3-cgi (3.6.10-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/python3-cgi_3.6.10-1_mipsel_24kc.ipk
Installing python3-cgitb (3.6.10-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/python3-cgitb_3.6.10-1_mipsel_24kc.ipk
Installing python3-dbm (3.6.10-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/python3-dbm_3.6.10-1_mipsel_24kc.ipk
Installing python3-asyncio (3.6.10-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/python3-asyncio_3.6.10-1_mipsel_24kc.ipk
Installing python3-lzma (3.6.10-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/python3-lzma_3.6.10-1_mipsel_24kc.ipk
Installing python3-decimal (3.6.10-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/python3-decimal_3.6.10-1_mipsel_24kc.ipk
Configuring python3-base.
Configuring python3-light.
Configuring python3-pydoc.
Configuring python3-email.
Configuring python3-cgi.
Configuring python3-cgitb.
Configuring python3-decimal.
Configuring python3-xml.
Configuring python3-ncurses.
Configuring python3-distutils.
Configuring python3-codecs.
Configuring python3-multiprocessing.
Configuring python3-unittest.
Configuring python3-ctypes.
Configuring python3-gdbm.
Configuring python3-sqlite3.
Configuring python3-logging.
Configuring python3-openssl.
Configuring python3-dbm.
Configuring python3-asyncio.
Configuring python3-lzma.
Configuring python3.
root@Omega-318B:/etc/opkg# opkg install python3-pip
Installing python3-pip (18.1-2) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/python3-pip_18.1-2_mipsel_24kc.ipk
Installing python3-setuptools (40.6.2-1) to root...
Downloading http://repo.onioniot.com/omega2/packages/packages/python3-setuptools_40.6.2-1_mipsel_24kc.ipk
Configuring python3-setuptools.
Configuring python3-pip.
root@Omega-318B:/etc/opkg# pip install --upgrade pip
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting pip
Downloading https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl (1.4MB)
|████████████████████████████████| 1.4MB 1.1MB/s
Installing collected packages: pip
Found existing installation: pip 19.2.3
Uninstalling pip-19.2.3:
Successfully uninstalled pip-19.2.3
Successfully installed pip-19.3.1
root@Omega-318B:/etc/opkg# pip3 install --upgrade pip
-ash: pip3: not found
root@Omega-318B:/etc/opkg# pip install --upgrade pip3
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
ERROR: Could not find a version that satisfies the requirement pip3 (from versions: none)
ERROR: No matching distribution found for pip3
root@Omega-318B:/etc/opkg# pip3 update
-ash: pip3: not found
root@Omega-318B:/etc/opkg# pi
pidof ping ping6 pip pip2 pip2.7 pip3.6 pivot_root
root@Omega-318B:/etc/opkg# pip3.6 update
ERROR: unknown command "update"
root@Omega-318B:/etc/opkg# pip3.6 install --upgrade pip3
Collecting pip3
Could not find a version that satisfies the requirement pip3 (from versions: )
No matching distribution found for pip3
You are using pip version 18.1, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
root@Omega-318B:/etc/opkg# pip3.6 install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 18.1
Uninstalling pip-18.1:
Successfully uninstalled pip-18.1
Successfully installed pip-19.3.1
root@Omega-318B:/etc/opkg# pip3.6 install --upgrade pip3.6
ERROR: Could not find a version that satisfies the requirement pip3.6 (from versions: none)
ERROR: No matching distribution found for pip3.6
root@Omega-318B:/etc/opkg# pip2 install --upgrade pip
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Requirement already up-to-date: pip in /usr/lib/python2.7/site-packages (19.3.1)
root@Omega-318B:/etc/opkg# pip3.6 install pycrypto
Collecting pycrypto
Downloading https://files.pythonhosted.org/packages/60/db/645aa9af249f059cc3a368b118de33889219e0362141e75d4eaf6f80f163/pycrypto-2.6.1.tar.gz (446kB)
|████████████████████████████████| 450kB 741kB/s
Installing collected packages: pycrypto
Running setup.py install for pycrypto ... error
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-a0_q9m6h/pycrypto/setup.py'"'"'; file='"'"'/tmp/pip-install-a0_q9m6h/pycrypto/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-dsphufne/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
root@Omega-318B:/etc/opkg# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 7.8M 7.8M 0 100% /rom
tmpfs 60.9M 3.0M 58.0M 5% /tmp
/dev/mmcblk0 14.2G 91.7M 13.4G 1% /overlay
overlayfs:/overlay 14.2G 91.7M 13.4G 1% /
tmpfs 512.0K 0 512.0K 0% /dev
/dev/mtdblock6 22.1M 1.3M 20.7M 6% /mnt/mtdblock6
/dev/mtdblock7 512.0K 240.0K 272.0K 47% /mnt/mtdblock7
root@Omega-318B:/etc/opkg# pip3.6 install pycrypto