简体   繁体   中英

How to make bash and make install use virtual environment

I've been trying to switch my coding to Linux.

I have ironed out most of my issues but one last thing I am not able to find any explanation of is the virtualization of make and bash commands.

I have installed PyCharm which virtualizes everything from what I have seen. However, when I am cloning repositories from Github, the instructions require building some code using make and then installing them and later on using bash to build dependencies.

I am running the commands in PyCharm terminal but instead of installing into the venv, it's installing the data in /usr/xxx instead.

How do I tell PyCharm to use bash and make in a similar way to pip to virtualize the setup ?

Edit: One of the projects in question is gym-gazebo which requires:

git clone https://github.com/erlerobot/gym-gazebo/blob/master/INSTALL.md

Then make and make install which installs it in the root

Later on there is also

bash setup_kinetic.bash

Which also uses root folders and not venv

I was able to install it but it is not virtualized the way it should when compared with coding on Windows

Basically the answer based on Evert and CharlesDuffy, what I'm looking for is containerization, since the libraries I'm looking for are C based with a python wrapper (something like that)

Docker, Singularity and Conda are on of the solutions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM