ahmed ensar
Kilopat
- Katılım
- 15 Şubat 2016
- Mesajlar
- 904
- Makaleler
- 7
- Çözümler
- 5
- Bu rehberde sizlere keenetic modem/router cihazlarında discord.py modülünü kurmayı anlatacağım.
- Kuruluma başlamadan önce swap/opkg kurulumu yaptığınızdan emin olun.
opkg install python3 python3-pip python3-dev gcc
komutunu yazıyoruz.python3 -m pip install discord.py
komutunu yazıyoruz.- Herhangi bir hata almadan işlemleri tamamlamanız lazım.
-
Kod:
~ # opkg install python3 python3-pip python3-dev gcc Installing python3 (3.9.0-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/python3_3.9.0-2_mips-3.4.ipk Installing zlib (1.2.11-3) to root... Downloading http://bin.entware.net/mipssf-k3.4/zlib_1.2.11-3_mips-3.4.ipk Installing python3-base (3.9.0-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/python3-base_3.9.0-2_mips-3.4.ipk Installing libffi (3.3-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/libffi_3.3-2_mips-3.4.ipk Installing libbz2 (1.0.8-1) to root... Downloading http://bin.entware.net/mipssf-k3.4/libbz2_1.0.8-1_mips-3.4.ipk Installing libuuid (2.36-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/libuuid_2.36-2_mips-3.4.ipk Installing libtirpc (1.2.6-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/libtirpc_1.2.6-2_mips-3.4.ipk Installing python3-light (3.9.0-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/python3-light_3.9.0-2_mips-3.4.ip k Installing python3-unittest (3.9.0-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/python3-unittest_3.9.0-2_mips-3.4 .ipk Installing libncursesw (6.2-1) to root... Downloading http://bin.entware.net/mipssf-k3.4/libncursesw_6.2-1_mips-3.4.ipk Installing libncurses (6.2-1) to root... Downloading http://bin.entware.net/mipssf-k3.4/libncurses_6.2-1_mips-3.4.ipk Installing python3-ncurses (3.9.0-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/python3-ncurses_3.9.0-2_mips-3.4. ipk Installing python3-ctypes (3.9.0-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/python3-ctypes_3.9.0-2_mips-3.4.i pk Installing python3-pydoc (3.9.0-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/python3-pydoc_3.9.0-2_mips-3.4.ip k Installing python3-multiprocessing (3.9.0-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/python3-multiprocessing_3.9.0-2_m ips-3.4.ipk Installing python3-email (3.9.0-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/python3-email_3.9.0-2_mips-3.4.ip k Installing python3-urllib (3.9.0-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/python3-urllib_3.9.0-2_mips-3.4.i pk Installing libgdbm (1.18.1-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/libgdbm_1.18.1-2_mips-3.4.ipk Installing python3-gdbm (3.9.0-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/python3-gdbm_3.9.0-2_mips-3.4.ipk Installing libexpat (2.2.10-1) to root... Downloading http://bin.entware.net/mipssf-k3.4/libexpat_2.2.10-1_mips-3.4.ipk Installing python3-xml (3.9.0-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/python3-xml_3.9.0-2_mips-3.4.ipk Installing libsqlite3 (3330000-1) to root... Downloading http://bin.entware.net/mipssf-k3.4/libsqlite3_3330000-1_mips-3.4.ipk Installing python3-sqlite3 (3.9.0-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/python3-sqlite3_3.9.0-2_mips-3.4. ipk Installing python3-logging (3.9.0-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/python3-logging_3.9.0-2_mips-3.4. ipk Installing python3-codecs (3.9.0-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/python3-codecs_3.9.0-2_mips-3.4.i pk Installing python3-distutils (3.9.0-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/python3-distutils_3.9.0-2_mips-3. 4.ipk Installing libopenssl (1.1.1h-1) to root... Downloading http://bin.entware.net/mipssf-k3.4/libopenssl_1.1.1h-1_mips-3.4.ipk Installing ca-certificates (20200601-1) to root... Downloading http://bin.entware.net/mipssf-k3.4/ca-certificates_20200601-1_all.ip k Installing python3-openssl (3.9.0-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/python3-openssl_3.9.0-2_mips-3.4. ipk Installing python3-cgi (3.9.0-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/python3-cgi_3.9.0-2_mips-3.4.ipk Installing python3-cgitb (3.9.0-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/python3-cgitb_3.9.0-2_mips-3.4.ip k Installing libxml2 (2.9.10-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/libxml2_2.9.10-2_mips-3.4.ipk Installing libdb47 (4.7.25.4.NC-5) to root... Downloading http://bin.entware.net/mipssf-k3.4/libdb47_4.7.25.4.NC-5_mips-3.4.ip k Installing python3-dbm (3.9.0-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/python3-dbm_3.9.0-2_mips-3.4.ipk Installing python3-asyncio (3.9.0-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/python3-asyncio_3.9.0-2_mips-3.4. ipk Installing liblzma (5.2.5-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/liblzma_5.2.5-2_mips-3.4.ipk Installing python3-lzma (3.9.0-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/python3-lzma_3.9.0-2_mips-3.4.ipk Installing python3-decimal (3.9.0-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/python3-decimal_3.9.0-2_mips-3.4. ipk Installing python3-pip (20.2.3-1) to root... Downloading http://bin.entware.net/mipssf-k3.4/python3-pip_20.2.3-1_mips-3.4.ipk Installing python3-pkg-resources (49.2.1-1) to root... Downloading http://bin.entware.net/mipssf-k3.4/python3-pkg-resources_49.2.1-1_mi ps-3.4.ipk Installing python3-setuptools (49.2.1-1) to root... Downloading http://bin.entware.net/mipssf-k3.4/python3-setuptools_49.2.1-1_mips- 3.4.ipk Installing python-pip-conf (0.1-1) to root... Downloading http://bin.entware.net/mipssf-k3.4/python-pip-conf_0.1-1_mips-3.4.ip k Installing python3-dev (3.9.0-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/python3-dev_3.9.0-2_mips-3.4.ipk Installing python3-lib2to3 (3.9.0-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/python3-lib2to3_3.9.0-2_mips-3.4. ipk Installing gcc (7.4.0-5) to root... Downloading http://bin.entware.net/mipssf-k3.4/gcc_7.4.0-5_mips-3.4.ipk Installing libiconv-full (1.11.1-4) to root... Downloading http://bin.entware.net/mipssf-k3.4/libiconv-full_1.11.1-4_mips-3.4.i pk Installing libintl-full (0.19.8.1-2) to root... Downloading http://bin.entware.net/mipssf-k3.4/libintl-full_0.19.8.1-2_mips-3.4. ipk Installing libbfd (2.34-1) to root... Downloading http://bin.entware.net/mipssf-k3.4/libbfd_2.34-1_mips-3.4.ipk Installing libopcodes (2.34-1) to root... Downloading http://bin.entware.net/mipssf-k3.4/libopcodes_2.34-1_mips-3.4.ipk Installing libctf (2.34-1) to root... Downloading http://bin.entware.net/mipssf-k3.4/libctf_2.34-1_mips-3.4.ipk Installing objdump (2.34-1) to root... Downloading http://bin.entware.net/mipssf-k3.4/objdump_2.34-1_mips-3.4.ipk Installing ar (2.34-1) to root... Downloading http://bin.entware.net/mipssf-k3.4/ar_2.34-1_mips-3.4.ipk Installing binutils (2.34-1) to root... Downloading http://bin.entware.net/mipssf-k3.4/binutils_2.34-1_mips-3.4.ipk Configuring zlib. Configuring python3-base. Configuring libffi. Configuring libbz2. Configuring libuuid. Configuring libtirpc. Configuring python3-light. Configuring python3-email. Configuring python3-urllib. Configuring libiconv-full. Configuring libintl-full. Configuring libbfd. Configuring libopcodes. Configuring libctf. Configuring objdump. Configuring ar. Configuring binutils. Configuring python3-pydoc. Configuring liblzma. Configuring python3-cgi. Configuring python3-cgitb. Configuring python3-decimal. Configuring python-pip-conf. Configuring libexpat. Configuring python3-xml. Configuring python3-unittest. Configuring libncursesw. Configuring libncurses. Configuring python3-ncurses. Configuring python3-ctypes. Configuring python3-multiprocessing. Configuring libgdbm. Configuring python3-gdbm. Configuring libsqlite3. Configuring python3-sqlite3. Configuring python3-logging. Configuring python3-codecs. Configuring python3-distutils. Configuring libopenssl. Configuring ca-certificates. Configuring python3-openssl. Configuring libxml2. Configuring libdb47. Configuring python3-dbm. Configuring python3-asyncio. Configuring python3-lzma. Configuring python3. Configuring python3-pkg-resources. Configuring python3-setuptools. Configuring gcc. There are no *-dev packages in Entware(with few exceptions)! Please install headers as described in the wiki: https://github.com/Entware/Entware/wiki Configuring python3-pip. Configuring python3-lib2to3. Configuring python3-dev. ~ # python3 -m pip install discord.py==1.6.0 Collecting discord.py==1.6.0 Downloading discord.py-1.6.0-py3-none-any.whl (779 kB) |████████████████████████████████| 779 kB 306 kB/s Collecting aiohttp<3.8.0,>=3.6.0 Downloading aiohttp-3.7.3.tar.gz (1.1 MB) |████████████████████████████████| 1.1 MB 210 kB/s Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Collecting async-timeout<4.0,>=3.0 Downloading async_timeout-3.0.1-py3-none-any.whl (8.2 kB) Collecting chardet<4.0,>=2.0 Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB) |████████████████████████████████| 133 kB 972 kB/s Collecting yarl<2.0,>=1.0 Downloading yarl-1.6.3.tar.gz (176 kB) |████████████████████████████████| 176 kB 250 kB/s Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Collecting multidict<7.0,>=4.5 Downloading multidict-5.1.0.tar.gz (53 kB) |████████████████████████████████| 53 kB 168 kB/s Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Collecting attrs>=17.3.0 Downloading attrs-20.3.0-py2.py3-none-any.whl (49 kB) |████████████████████████████████| 49 kB 143 kB/s Collecting typing-extensions>=3.6.5 Downloading typing_extensions-3.7.4.3-py3-none-any.whl (22 kB) Collecting idna>=2.0 Downloading idna-3.1-py3-none-any.whl (58 kB) |████████████████████████████████| 58 kB 440 kB/s Building wheels for collected packages: aiohttp, yarl, multidict Building wheel for aiohttp (PEP 517) ... done Created wheel for aiohttp: filename=aiohttp-3.7.3-cp39-cp39-linux_mips.whl size=642000 sha256=cfa09c55e236169cb1f69b4bac8bbc3627a35f74c0849e77d3cf4e7b742c12cc Stored in directory: /opt/root/.cache/pip/wheels/46/23/b3/bf552f62b2de47adb27a93b793f130560e9dea847889d63d7e Building wheel for yarl (PEP 517) ... done Created wheel for yarl: filename=yarl-1.6.3-cp39-cp39-linux_mips.whl size=126275 sha256=cdc9b6b68887a1217094bcf35cb7d1fd8e1c581bd056021bb4a7f145864f6842 Stored in directory: /opt/root/.cache/pip/wheels/c2/03/d3/a7ea30efd0c84c03fd1caf7757949a1dedf797361267741ef0 Building wheel for multidict (PEP 517) ... done Created wheel for multidict: filename=multidict-5.1.0-cp39-cp39-linux_mips.whl size=51685 sha256=6e4db4da7f94ec45ed7ffb0219dfef9654810cbfc36a2ae2759fbb029100229b Stored in directory: /opt/root/.cache/pip/wheels/30/e1/1c/e049eab71b71df690ef505f2c3d5ef4d0c583346bd22f5a85f Successfully built aiohttp yarl multidict Installing collected packages: async-timeout, chardet, idna, multidict, yarl, attrs, typing-extensions, aiohttp, discord.py Successfully installed aiohttp-3.7.3 async-timeout-3.0.1 attrs-20.3.0 chardet-3.0.4 discord.py-1.6.0 idna-3.1 multidict-5.1.0 typing-extensions-3.7.4.3 yarl-1.6.3 WARNING: You are using pip version 20.2.3; however, version 20.3.3 is available. You should consider upgrading via the '/opt/bin/python3 -m pip install --upgrade pip' command.
Son düzenleyen: Moderatör: