How do I pickle pyEphem objects for multiprocessing?
问题 I am trying to calculate some values of satellites, the data-generation takes quite long so I want to implement this using multiprocessing. The problem is that I get this error from pyEphem, TypeError: can't pickle ephem.EarthSatellite objects . The pyEphem objects are not used in the functions that I want to parallelize. This is an example file of my code (minimized). This is my main file: main.py import ephem import numpy import math import multiprocessing as mp from SampleSats import Sats