私はGithubリポジトリをフォークしてプロジェクトをコンパイルするのに苦労しています。私はUbuntuのを使用していますし、setup.pyファイルを使用してインストールしようとしているが、私はこれを取得しています:Python 3がsetuptoolsモジュールを見つけることができません - Ubuntu
$sudo apt-get install python3-setuptools
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-setuptools is already the newest version (20.7.0-1)
0 upgraded, 0 newly installed, 0 to remove, and 100 not upgraded.
$python3 setup.py install
Traceback (most recent call last):
File "setup.py", line 5, in <module>
from setuptools import setup, find_packages
ModuleNotFoundError: No module named 'setuptools'
私も、私はsudo apt-get install python-setuptools
を使用して、私はpython setup.py install
をしようとすると、私は問題を取得するのpython 2でコンパイルしてみましたコンパイルしようとしているコードはPythonの3つのコードだと思います。問題は
File "/usr/local/lib/python2.7/dist-packages/pokemon_terminal-0.0.1-py2.7.egg/pokemonterminal/database.py", line 101
def get_pokemon_of_type(self, pkmn_type: str, single: bool = True):
^
SyntaxError: invalid syntax
私はこれをUbuntu端末で実行しています。誰かが自分の状況について何か洞察を持っているのだろうかと思っていた。ありがとう!
まだsetuptoolsを使用できないようです:setuptoolsをインストールしますが、setuptoolsにあるsetup()メソッドを見つけることができません ' –