Хорошо.Поэтому я работаю над пакетом на основе Python 2.7 под названием starkit .Я устанавливаю его с помощью следующих команд:
curl -O https://raw.githubusercontent.com/starkit/starkit/master/starkit_env27.yml
# create env
conda env create --file starkit_env27.yml -n starkit
# activate
source activate starkit
# get starkit
git clone https://github.com/starkit/starkit
cd starkit
# install
python setup.py install
Когда я запускаю команду установки python, я получаю следующую ошибку:
Traceback (most recent call last):
File "setup.py", line 65, in <module>
get_debug_option(PACKAGENAME))
File "/Users/97amarnathk/Documents/starkit/astropy_helpers/astropy_helpers/setup_helpers.py", line 125, in get_debug_option
if any(cmd in dist.commands for cmd in ['build', 'build_ext']):
File "/Users/97amarnathk/Documents/starkit/astropy_helpers/astropy_helpers/setup_helpers.py", line 125, in <genexpr>
if any(cmd in dist.commands for cmd in ['build', 'build_ext']):
AttributeError: Distribution instance has no attribute 'commands'
Но когда я снова делаю python setup.py install
, этоработает отлично.Я не могу найти , почему пакет устанавливается не с первой попытки, а со второй попытки?
Это происходит независимо от используемого компьютера.И когда я клонирую этот репозиторий где-то еще, такая же ошибка возникает с первой попытки, но не со второй.Почему?