Python Forum
Package cannot be loaded into PBS queue file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Package cannot be loaded into PBS queue file
The skopt package ( was installed on a cluster I use.

When I run the code in python directly in the terminal (i.e., in the cluster terminal executing "python3 ./" command), no problem occurs and the code works as expected.

However when I simply place the command to execute the code in a PBS queue system file (e.g., python3 ./, I cannot load the installed package and I get the following message:

Traceback (most recent call last):
File "./", line 22, in <module>
from skopt import gp_minimize
ModuleNotFoundError: No module named 'skopt'

Could someone give me an insight on how to solve the problem?

If I need to provide any more information, let me know.

If my question is out of scope, please delete.

ps1: the package is installed on /usr/local/lib/python3.6/site-packages/skopt directory.
ps2: the package was installed by "pip3 install skopt" command.
ps3: in my code I'm calling the installed package with the following commands: "from skopt import gp_minimize" and "from import Real, Integer, Categorical"
ps4: when i run pip3 list, i can verify that the package is installed

The solution was easier than I thought, as the skopt package was in the path "/usr/local/lib/python3.6/site-packages/" just use the command "export PYTHONPATH=$PYTHONPATH:/usr/local/ lib/python3.6/site-packages", before running the code in python

I was using the "export" command wrongly.

Possibly Related Threads…
Thread Author Replies Views Last Post
  PyQt5 MySQL Drivers Not Loaded AdeS 7 956 Aug-06-2021, 08:34 AM
Last Post: AdeS
  MacOS BigSur Python3 - dyld: Library not loaded: trillionanswers 1 2,525 Mar-02-2021, 11:00 PM
Last Post: nilamo
  Why is mpl_toolkits loaded? Gribouillis 1 596 Jan-30-2021, 08:39 PM
Last Post: Serafim
  task queue Valon1981 8 1,807 Jul-07-2020, 07:41 AM
Last Post: freeman
  start interactive pyhton shell with pre-loaded custom modules Viktor 2 959 Apr-09-2020, 08:25 AM
Last Post: Viktor
  can we write command output to new csv file using Panda package? PythonBeginner_2020 3 1,212 Mar-13-2020, 12:38 PM
Last Post: ndc85430
  Queue in Pygame constantin01 1 1,827 Jan-07-2020, 04:02 PM
Last Post: metulburr
  Queue maxsize mr_byte31 2 2,353 Sep-03-2019, 07:02 PM
Last Post: mr_byte31
  multiprocessing.Queue.put(,,0) not documented Skaperen 2 929 Jul-30-2019, 09:01 AM
Last Post: perfringo
  I need help! How to package python code with other component into an exe file?? Wendy 4 1,359 Jul-15-2019, 01:29 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020