Ich versuche, einen virtualenv Inside Jenkins-Job zu erstellen, und installieren Sie dann Requirements.txt. Aber ich kann virtualenv nicht erstellen. So sieht meine Jenkins-Datei aus.Kann Pip nicht in Jenkins verwenden
sh 'sudo easy_install pip; pip install virtualenv'
Aber ich bin
+ sudo easy_install pip
Searching for pip
Best match: pip 9.0.1
Processing pip-9.0.1-py2.7.egg
pip 9.0.1 is already the active version in easy-install.pth
Installing pip script to /usr/local/bin
Installing pip2.7 script to /usr/local/bin
Installing pip2 script to /usr/local/bin
Using /Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip
+ pip install virtualenv
/Users/Shared/Jenkins/Home/workspace/[email protected]/durable-e0a93859/script.sh: line 3: pip: command not found
entweder fügen Sie "/ usr/local/bin /" zu Ihrem Pfad hinzu oder führen Sie es direkt aus: '/ usr/local/bin/pip installieren Sie virtualenv' (stellen Sie sicher, dass pip dort ist) – Tamar
@Tamar: Danke. Es funktionierte. – user208859