로컬 Nexus 서버가 PIP 로컬 서버로 설정되었습니다. 해당 로컬 서버를 사용하여 샘플/테스트 클래스 (상속)를 설치하려고합니다. 로컬 서버에 업로드는 성공하지만,이 명령을 사용하여 설치 :Nexus 저장소 관리자가 pip 로컬 서버로 올바르게 작동하지 않음
pip install -i http://<nexus-ip>:8081/repository/pypi-all/pypi inherits
이에 결과 : 나는 또한이 명령을 시도
Could not find a version that satisfies the requirement inherits
(from versions:)
No matching distribution found for inherits
,하지만 결과는 동일합니다
pip install inherits
pip install -i http://<nexus-ip>:8081/repository/pypi-all/pypi inherits-0.1
pip install -i http://<nexus-ip>:8081/repository/pypi-all/pypi inherits==0.1
여기 내 ~/.picy의 내용은 다음과 같습니다.
,210 가내 ~ /의 .config/PIP/pip.conf가
[global]
index = http://<nexus-ip>:8081/repository/pypi-all/pypi
index-url = http://<nexus-ip>:8081/repository/pypi-all/simple
언급 한 바와 같이, 명령 아래 사용하여 업로드하는 것은 성공 내용
바로 여기에 : 넥서스 서버에서python setup.py sdist upload -r nexus
응답은 여기 (즉 의미 업로드했다 성공적인) :이 문제를 해결하고 핍이 작품을 설치하는 방법에
#!/usr/bin/env python
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requires = []
setup(
name = "inherits",
packages = ["inherits"],
version = '0.1',
description = 'Example inherits package',
#url = "",
#download_url = "",
author = "Jayson Pryde",
classifiers = [],
)
모든 아이디어를 다음 setup.py의
creating inherits-0.1
creating inherits-0.1/inherits
creating inherits-0.1/inherits.egg-info
copying files to inherits-0.1...
copying setup.cfg -> inherits-0.1
copying setup.py -> inherits-0.1
copying inherits/__init__.py -> inherits-0.1/inherits
copying inherits/addmult.py -> inherits-0.1/inherits
copying inherits/inherits.py -> inherits-0.1/inherits
copying inherits/subdiv.py -> inherits-0.1/inherits
copying inherits.egg-info/PKG-INFO -> inherits-0.1/inherits.egg-info
copying inherits.egg-info/SOURCES.txt -> inherits-0.1/inherits.egg-info
copying inherits.egg-info/dependency_links.txt -> inherits-0.1/inherits.egg-info
copying inherits.egg-info/top_level.txt -> inherits-0.1/inherits.egg-info
Writing inherits-0.1/setup.cfg
Creating tar archive
removing 'inherits-0.1' (and everything under it)
running upload
Submitting dist/inherits-0.1.tar.gz to http://<nexus-ip>:8081/nexus/repository/pypi-internal/
Server response (200): OK
내용은 기본 사항이다? 미리 감사드립니다!
'--verbose' 플래그로'pip install' 명령을 시도해보십시오. –