mac
mac

Reputation: 53

Robot Framework pip install into different directory

We are trying to install robotframework into a different directory because of access issue for native python36's site-packages(work place red tapes). I was able to do pip install using the following command:

pip install robotframework --target C:\work 

Although it is displaying the successful installation, I am missing the .exe files (robot, rebot). I understand if I were to install in the native python site packages, these .exe files gets added to the Scripts folder. But with the target folder specified, how can I make them install under the same target folder?

Upvotes: 1

Views: 1942

Answers (2)

mac
mac

Reputation: 11

Was able to install outside of native python site-packages folder using the command:

pip install --install-option="--prefix=$PREFIX_PATH" package_name

Upvotes: 1

jozefow
jozefow

Reputation: 786

alternatively to @mac, you may use virtual env to create your python environment outside of limited access paths and install all requirements there.

later on, if you need to use that python venv, either activate it in console or use directly python.exe from inside to call installed packages:

<path to venv>/bin/python -m robot.run <rest of attributes>

Upvotes: 1

Related Questions