Paketlarni o'rnatish uchun "SSL sertifikati tekshirib bo'lmadi"

Men python uchun pribonni ishlatish uchun Scrapy to'plamini (boshqalar qatori) o'rnatishga harakat qilaman. Men python 3 va python 2 yordamida o'rnatishni qildim, shuning uchun setuptoolsni o'rnatdim/yangiladim: $ pip3 install --grade setuptools , men - ishonchli $ pip3 install - trusted-host pypi.python.org Skrapy kabi quyidagi variantni tanlang: . Lekin men $ pip3 o'rnatish Scrapy ishlayotganimda doimo bir xil xato xabarni olaman. To'liq chiqish bu:

Collecting Scrapy
  Using cached Scrapy-1.3.2-py2.py3-none-any.whl
Collecting PyDispatcher>=2.0.5 (from Scrapy)
  Using cached PyDispatcher-2.0.5.tar.gz
Collecting service-identity (from Scrapy)
  Using cached service_identity-16.0.0-py2.py3-none-any.whl
Collecting pyOpenSSL (from Scrapy)
  Using cached pyOpenSSL-16.2.0-py2.py3-none-any.whl
Collecting w3lib>=1.15.0 (from Scrapy)
  Using cached w3lib-1.17.0-py2.py3-none-any.whl
Collecting parsel>=1.1 (from Scrapy)
  Using cached parsel-1.1.0-py2.py3-none-any.whl
Collecting queuelib (from Scrapy)
  Using cached queuelib-1.4.2-py2.py3-none-any.whl
Requirement already satisfied: six>=1.5.2 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from Scrapy)
Collecting Twisted>=13.1.0 (from Scrapy)
  Using cached Twisted-17.1.0.tar.bz2
    Complete output from command python setup.py egg_info:
    Download error on https://pypi.python.org/simple/incremental/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749) -- Some packages may not be found!
    Couldn't find index page for 'incremental' (maybe misspelled?)
    Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749) -- Some packages may not be found!
    No local packages or working download links found for incremental>=16.10.1
    Traceback (most recent call last):
      File "", line 1, in 
      File "/private/var/folders/gy/5xt04_452z791v1qjs1yzxkh0000gn/T/pip-build-nkv4jozy/Twisted/setup.py", line 21, in 
        setuptools.setup(**_setup["getSetupArgs"]())
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 108, in setup
        _setup_distribution = dist = klass(attrs)
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/dist.py", line 317, in __init__
        self.fetch_build_eggs(attrs['setup_requires'])
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/dist.py", line 372, in fetch_build_eggs
        replace_conflicting=True,
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 851, in resolve
        dist = best[req.key] = env.best_match(req, ws, installer)
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1123, in best_match
        return self.obtain(req, installer)
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1135, in obtain
        return installer(requirement)
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/dist.py", line 440, in fetch_build_egg
        return cmd.easy_install(req)
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 668, in easy_install
        raise DistutilsError(msg)
    distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('incremental>=16.10.1')

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/gy/5xt04_452z791v1qjs1yzxkh0000gn/T/pip-build-nkv4jozy/Twisted/

Men Mac OS 10.12.1 versiyasiman va python 3.6 dan foydalanmoqdaman. Hech kim bu muammoni hal qilishni biladimi?

7
Tarmoqni o'rnatish muvaffaqiyatsiz tugadi »dagi havola xatosi : [SSL: CERTIFICATE_VERIFY_FAILED] sertifikat tekshiruvi muvaffaqiyatsiz tugadi (_ssl.c: 598) " - bu erda Kernobs bu savolga javob berishi mumkin ... ulardan bittasi ishlashi mumkin bo'lgan bir nechta variantni beradi.
qo'shib qo'ydi muallif gbtimmon, manba
Siz korporativ xavfsizlik devorining orqasida turibsizmi?
qo'shib qo'ydi muallif Scratch'N'Purr, manba
@ Scratch'N'Purr, men yo'qman
qo'shib qo'ydi muallif imc, manba
@ Scratch'N'Purr, men yo'qman
qo'shib qo'ydi muallif imc, manba

12 javoblar

pip install --trusted-host pypi.python.org autopep8 (any package name)

Ushbu buyruq ishonchli manbalarga pypi.python.org qo'shiladi va barcha zarur paketlarni o'rnatadi.

O'zimga xatoga yo'l qo'ydim va bu buyruq yozib, pythonning barcha paketlarini o'rnatishimga yordam berdi.

11
qo'shib qo'ydi

Ushbu python Apple ning oldingi versiyalarida https://bugs.python.org/issue28150 saytida aytib o'tilganidek, OpenSSL paketlar, lekin endi yo'q.

pip install certifi buyrug'ini ishga tushirish va keyin pribotni o'rnatish Scrapy men uchun tuzatildi

6
qo'shib qo'ydi

Ushbu python Apple ning oldingi versiyalarida https://bugs.python.org/issue28150 saytida aytib o'tilganidek, OpenSSL paketlar, lekin endi yo'q.

pip install certifi buyrug'ini ishga tushirish va keyin pribotni o'rnatish Scrapy men uchun tuzatildi

6
qo'shib qo'ydi

Yuqoridagi javoblar bo'yicha bitta eslatma: HTTPSni ushlab turuvchi proksi (bizda zScaler) mavjud bo'lgan holatda ishonchli hostlarga faqat pypi.python.org ni qo'shish kifoya qilmaydi.

Hozirda mening pip.ini saytida quyidagilar mavjud:

trusted-host = pypi.python.org pypi.org files.pythonhosted.org

pip -v install pkg dasturini ishga tushirish, qanday hostlar qo'shilishi mumkinligi haqida ba'zi maslahatlar beradi.

6
qo'shib qo'ydi
Agar pip.ini mavjud bo'lmasa, siz [global] qismini yaratib, "ishonchli-host = ..." qatoriga qo'ying.
qo'shib qo'ydi muallif Pieter-Jan Busschaert, manba
Bu jozibasi kabi ishladi! rahmat
qo'shib qo'ydi muallif m33n, manba

Yuqoridagi javoblar bo'yicha bitta eslatma: HTTPSni ushlab turuvchi proksi (bizda zScaler) mavjud bo'lgan holatda ishonchli hostlarga faqat pypi.python.org ni qo'shish kifoya qilmaydi.

Hozirda mening pip.ini saytida quyidagilar mavjud:

trusted-host = pypi.python.org pypi.org files.pythonhosted.org

pip -v install pkg dasturini ishga tushirish, qanday hostlar qo'shilishi mumkinligi haqida ba'zi maslahatlar beradi.

6
qo'shib qo'ydi
Agar pip.ini mavjud bo'lmasa, siz [global] qismini yaratib, "ishonchli-host = ..." qatoriga qo'ying.
qo'shib qo'ydi muallif Pieter-Jan Busschaert, manba
Bu jozibasi kabi ishladi! rahmat
qo'shib qo'ydi muallif m33n, manba

Sinab ko'ringan narsa --- indeks direktifi va http://manzilini (https://emas, balki) https-ni ishlatmaslikni pythonga ayting

pip install --index-url=http://pypi.python.org/simple/ --trusted-host pypi.python.org  Scrapy

Siz korporativ xavfsizlik devorining ortida bo'lishi mumkin va men yuqorida ham muvaffaqiyatsiz bo'lgan tajribalarni boshdan kechirishingiz mumkin, garchi men shuni tushunish uchun xavfsizlik devorlari yoki SSL haqida etarlicha bilganimga o'xshamaylik. Bunday holatda, men sertifikat faylini olish va uni pythonga o'tkazishim mumkin bo'lgan yagona usul bo'ldi. Tafsilotlar uchun kenorbning javobini ko'ring.

4
qo'shib qo'ydi

Sinab ko'ringan narsa --- indeks direktifi va http://manzilini (https://emas, balki) https-ni ishlatmaslikni pythonga ayting

pip install --index-url=http://pypi.python.org/simple/ --trusted-host pypi.python.org  Scrapy

Siz korporativ xavfsizlik devorining ortida bo'lishi mumkin va men yuqorida ham muvaffaqiyatsiz bo'lgan tajribalarni boshdan kechirishingiz mumkin, garchi men shuni tushunish uchun xavfsizlik devorlari yoki SSL haqida etarlicha bilganimga o'xshamaylik. Bunday holatda, men sertifikat faylini olish va uni pythonga o'tkazishim mumkin bo'lgan yagona usul bo'ldi. Tafsilotlar uchun kenorbning javobini ko'ring.

4
qo'shib qo'ydi

Eng so'nggi paketlarni olish uchun sudo apt-get upgrade ni sinab ko'rishingiz mumkin. Bu muammoni mashinamga qo'ydi.

0
qo'shib qo'ydi

Eng so'nggi paketlarni olish uchun sudo apt-get upgrade ni sinab ko'rishingiz mumkin. Bu muammoni mashinamga qo'ydi.

0
qo'shib qo'ydi

Ular endi pypi.org dan foydalanayotganga o'xshaydi. Quyidagilarni% appdata% \ pip \ pip.ini deb qo'shib qo'ydim va paketlarimni HTTPSni ushlab turuvchi proksi-server orqasidan yuklab olish imkoniyatiga ega bo'ldim:

ishonchli-host = pypi.python.org files.pythonhosted.org pypi.org

0
qo'shib qo'ydi

Agar ishonchli xost sifatida pypi.python.org ni qo'shsangiz, fayllar.pythonhosted.org qo'shib ko'ring. Misol uchun

python -m pip install --upgrade --trusted-host files.pythonhosted.org 
0
qo'shib qo'ydi

Agar ishonchli xost sifatida pypi.python.org ni qo'shsangiz, fayllar.pythonhosted.org qo'shib ko'ring. Misol uchun

python -m pip install --upgrade --trusted-host files.pythonhosted.org 
0
qo'shib qo'ydi
Python
Python
372 ishtirokchilar

Bu guruh python dasturlash tilini muhokama qilish uchun. Iltimos, o'zingizni hurmat qiling va faqat dasturlash bo'yicha yozing. Botlar mavzusini @botlarhaqida guruhida muhokama qling! FAQ: @PyFAQ Offtopic: @python_uz_offtopic

Python offtopic group !
Python offtopic group !
150 ishtirokchilar

@python_uz gruppasining offtop gruppasi. offtop bo'lsa ham reklama mumkin emas ) Boshqa dasturlash tiliga oid gruppalar @languages_programming