"ModuleNotFoundError" après "import"
Bonjour, je suis un peu bleu sur SageMath. Je cherche à connecter deux fichiers avec "import", mais Sage me répond "ModuleNotFoundError". Que faire?
sage: attach('/home/gustave/SIDH_RS/protocol.sage')
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Cell In[2], line 1
----> 1 sage.repl.load.load(sage.repl.load.base64.b64decode("L2hvbWUvZ3VzdGF2ZS9TSURIX1JTL3Byb3RvY29sLnNhZ2U="),globals(),True)
File ~/sage/src/sage/repl/load.py:281, in load(filename, globals, attach)
279 with parsed_file.open() as f:
280 code = compile(f.read(), parsed_file, 'exec')
--> 281 exec(code, globals)
282 else:
283 # Preparse in memory only for speed.
284 if attach:
File /tmp/sage_tmto4bid/protocolkgbifeml.sage.py:10
8 import sys
9 import sage.all
---> 10 import based_functions
12 def point_of_fxed_degree(E,d,seed=None):
13 if seed!=None:
ModuleNotFoundError: No module named 'based_functions'
voici la comande qui me pose probleme import based_functions
Before importing, you need to install the package (pip install?).