Shubham,

I can't think of any issues that could arise from installing packages this way, but a ChimeraX developer might know more about all the types of environments people are using.

I just want to mention that ChimeraX does have a pip command (I think it was added in 1.5), so you could pretty easily make a .cxc file with all the `pip install X` you need. This might be simpler for users, as they wouldn't have to modify your scripts - just start up ChimeraX (GUI or --nogui) and `open requirements.cxc`.

Best,

Tony

On Wed, May 3, 2023 at 9:06 AM Shubham Devesh Ramgoolam via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:

Dear ChimeraX team,

 

I have some python scripts for performing computation using chimeraX in the nogui mode.

Those scripts rely on packages not available in the python environment of chimeraX and I installed them using:

ChimeraX-console.exe -m pip install add_package --user

I intend to distribute my scripts to other users and they will also need to install these packages.

As such, I have written another python script to automate the installation of these packages (the path to ChimeraX-console.exe (if Windows) or ChimeraX.exe (if Mac) must be supplied in a text file for this to work). The heart of the automation script is as follows:

 

for item in list_packages:

    subprocess.call([path_chimeraX, '-m', 'pip', 'install', item, '--user'])

 

Is this approach of installing python modules in chimeraX valid, considering that different users may have a different environment for their chimeraX? (I am worried that pip install might not work on some setups.)

 

Regards,

Shubham Ramgoolam

 

 

 

 

 

Sent from Mail for Windows

 

_______________________________________________
ChimeraX-users mailing list
ChimeraX-users@cgl.ucsf.edu
Manage subscription:
https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users