Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Strony: 1
Witam.
Za chwilę mnie coś strzeli.
Potrzebuję zainstalować IMAPClient.
NIestety:
# pip install imapclient Downloading/unpacking imapclient Downloading IMAPClient-1.1.0.tar.gz (192kB): 192kB downloaded Running setup.py (path:/tmp/pip-build-2FAq27/imapclient/setup.py) egg_info for package imapclient The required version of setuptools (>=18.2) is not available, and can't be installed while this script is running. Please install a more recent version first, using 'easy_install -U setuptools'. (Currently using setuptools 5.5.1 (/usr/lib/python2.7/dist-packages))
Upgrade setuptoolsów przez easy_install czy pip oczywiście nie przejdzie, jako że iż ponieważ:
# pip install --upgrade setuptools Downloading/unpacking setuptools from https://pypi.python.org/packages/bb/e0/ea620f9ecbaaaf3ebb288cdbbe8cc20b6a789c17e42d8916662b218e3349/setuptools-38.2.4-py2.py3-none-any.whl#md5=e01a31cd30ce5f46d7e1fc2a5b1245a3 Downloading setuptools-38.2.4-py2.py3-none-any.whl (489kB): 489kB downloaded Installing collected packages: setuptools Found existing installation: setuptools 5.5.1 Not uninstalling setuptools at /usr/lib/python2.7/dist-packages, owned by OS Successfully installed setuptools Cleaning up...
przy czym przedostatnia linijka to taki wielce dowcipny żart.
Nawet rozpaczliwa próba wywalenia pipa z setuptoolsami razem i ręczna instalacja kończy się niepowodzeniem:
# pip Traceback (most recent call last): File "/usr/local/bin/pip", line 5, in <module> from pkg_resources import load_entry_point File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2876, in <module> working_set = WorkingSet._build_master() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 451, in _build_master return cls._build_from_requirements(__requires__) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 464, in _build_from_requirements dists = ws.resolve(reqs, Environment()) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 639, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: pip==1.5.6
Jest na to jaki sposób oprócz zainstalowania Ubuntu?
Ostatnio edytowany przez ethanak (2017-12-08 09:50:54)
Offline
ethanak napisał(-a):
.......
Jest na to jaki sposób oprócz zainstalowania Ubuntu?
Oczywiście że jest xD:
# G1 ### pią gru 08 11:09:08 domek : ~ root ~> emerge -q dev-python/imapclient >>> Verifying ebuild manifests >>> Emerging (1 of 1) dev-python/imapclient-0.13::gentoo >>> Installing (1 of 1) dev-python/imapclient-0.13::gentoo >>> Recording dev-python/imapclient in "world" favorites file... * Messages for package dev-python/imapclient-0.13: * Log file: /var/log/portage/buildlogs/dev-python:imapclient-0.13:20171208-100939.log * Package: dev-python/imapclient-0.13 * Repository: gentoo * Maintainer: python@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python2_7 python_targets_python3_4 userland_GNU * FEATURES: fakeroot network-sandbox preserve-libs splitdebug userpriv usersandbox * Applying 0.12-tests.patch ... * python2_7: running distutils-r1_run_phase distutils-r1_python_compile * python3_4: running distutils-r1_run_phase distutils-r1_python_compile * python2_7: running distutils-r1_run_phase python_install * python3_4: running distutils-r1_run_phase python_install * python3_4: running distutils-r1_run_phase python_install_all * Final size of build directory: 1220 KiB (1.1 MiB) * Final size of installed tree: 772 KiB
SOA#1
Propozycja nr 2:
# Debian ### pią gru 08 11:35:12 domek : / root ~> cat /etc/debian_version buster/sid # Debian ### pią gru 08 11:34:18 domek : / root ~> pip install imapclient Collecting imapclient Downloading IMAPClient-1.1.0.tar.gz (192kB) 100% |████████████████████████████████| 194kB 1.5MB/s Collecting backports.ssl>=0.0.9 (from imapclient) Downloading backports.ssl-0.0.9.tar.gz Requirement already satisfied: pyopenssl>=0.15.1 in /usr/lib/python2.7/dist-packages (from imapclient) Requirement already satisfied: six in /usr/lib/python2.7/dist-packages (from imapclient) Building wheels for collected packages: imapclient, backports.ssl Running setup.py bdist_wheel for imapclient ... done Stored in directory: /root/.cache/pip/wheels/54/d7/68/9318304ad538da342300c681b8322e134cde0eba7253c4c59b Running setup.py bdist_wheel for backports.ssl ... done Stored in directory: /root/.cache/pip/wheels/cd/9d/13/e855020d39af904231165e7c92360527ef8d8c7595532b99e1 Successfully built imapclient backports.ssl Installing collected packages: backports.ssl, imapclient Successfully installed backports.ssl-0.0.9 imapclient-1.1.0
SOA#1 po raz drugi.
Pozdro
Ostatnio edytowany przez Jacekalex (2017-12-08 11:38:11)
Offline
Strony: 1