kerrickstaley / genanki

A Python 3 library for generating Anki decks
MIT License
1.99k stars 150 forks source link

ModuleNotFoundError: No module named 'setuptools' #24

Closed jedet closed 5 years ago

jedet commented 5 years ago

Hi Kerrick,

I have found this repository and very much like it. Thank your for investing your time into that code. As I have not too much experience with python and some with Linux, I struggle to get it to run.

I have managed to download and install these 3 packages:

but "pyyaml" I am not sure if it was installed, as I downloaded that manually and not with the Software Manager of Linux. When I do a "make install" in the "genanki-master"-directory, I receive this output:

python3 setup.py install --user
Traceback (most recent call last):
  File "setup.py", line 1, in <module>
    from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'
Makefile:3: recipe for target 'install' failed
make: *** [install] Error 1

It seems like it point to this line here: https://github.com/kerrickstaley/genanki/blob/6d173fcd8a50b29164d733fce750276bc9a9f39d/setup.py#L1 I have not been able to find that directory or file "setuptools". Where is that?

Thank you very much for your help :)

Best regards Joel

Kentoseth commented 5 years ago

Try installing everything using a Virtual Environment.

Are you on Linux?

Doing so on Linux can be found here:

https://help.dreamhost.com/hc/en-us/articles/115000695551-Installing-and-using-Python-s-virtualenv-using-Python-3

After creating your virtualenv environment, you simply do:

pip install genanki

jedet commented 5 years ago

Dear Kerrick

Thank you.

Nowadays I have already switched to the csv-file-approach, because that is anyway easier

Thank you for your answer Many Blessings Joel ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Monday, January 7, 2019 10:34 PM, Moe notifications@github.com wrote:

Try installing everything using a Virtual Environment.

Are you on Linux?

Doing so on Linux can be found here:

https://help.dreamhost.com/hc/en-us/articles/115000695551-Installing-and-using-Python-s-virtualenv-using-Python-3

After creating your virtualenv environment, you simply do:

pip install genanki

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.