Error when installing pyinstaller version 4.3. How to fix it? - python

When I try to install pyinstaller version 4.3. Then I got unwanted erro that I have pasted below. Please help me to get out of this error.
My current pip version is 22.2. And python version is 3.7.
C:\WINDOWS\system32>pip install --no-cache-dir pyinstaller==4.3
Collecting pyinstaller==4.3
Downloading pyinstaller-4.3.tar.gz (3.7 MB)
---------------------------------------- 3.7/3.7 MB 5.9 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [41 lines of output]
Traceback (most recent call last):
File "c:\users\abhis\appdata\local\programs\python\python37\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
main()
File "c:\users\abhis\appdata\local\programs\python\python37\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "c:\users\abhis\appdata\local\programs\python\python37\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 164, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "C:\Users\abhis\AppData\Local\Temp\pip-build-env-l2t7s_bi\overlay\Lib\site-packages\setuptools\build_meta.py", line 188, in prepare_metadata_for_build_wheel
self.run_setup()
File "C:\Users\abhis\AppData\Local\Temp\pip-build-env-l2t7s_bi\overlay\Lib\site-packages\setuptools\build_meta.py", line 282, in run_setup
self).run_setup(setup_script=setup_script)
File "C:\Users\abhis\AppData\Local\Temp\pip-build-env-l2t7s_bi\overlay\Lib\site-packages\setuptools\build_meta.py", line 174, in run_setup
exec(code, locals())
File "<string>", line 78, in <module>
File "C:\Users\abhis\AppData\Local\Temp\pip-build-env-l2t7s_bi\overlay\Lib\site-packages\setuptools\__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "C:\Users\abhis\AppData\Local\Temp\pip-build-env-l2t7s_bi\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 151, in setup
dist.parse_config_files()
File "C:\Users\abhis\AppData\Local\Temp\pip-build-env-l2t7s_bi\overlay\Lib\site-packages\setuptools\dist.py", line 865, in parse_config_files
self, self.command_options, ignore_option_errors=ignore_option_errors
File "C:\Users\abhis\AppData\Local\Temp\pip-build-env-l2t7s_bi\overlay\Lib\site-packages\setuptools\config\setupcfg.py", line 172, in parse_configuration
meta.parse()
File "C:\Users\abhis\AppData\Local\Temp\pip-build-env-l2t7s_bi\overlay\Lib\site-packages\setuptools\config\setupcfg.py", line 451, in parse
section_parser_method(section_options)
File "C:\Users\abhis\AppData\Local\Temp\pip-build-env-l2t7s_bi\overlay\Lib\site-packages\setuptools\config\setupcfg.py", line 422, in parse_section
self[name] = value
File "C:\Users\abhis\AppData\Local\Temp\pip-build-env-l2t7s_bi\overlay\Lib\site-packages\setuptools\config\setupcfg.py", line 243, in __setitem__
value = parser(value)
File "C:\Users\abhis\AppData\Local\Temp\pip-build-env-l2t7s_bi\overlay\Lib\site-packages\setuptools\config\setupcfg.py", line 557, in _parse_version
return expand.version(self._parse_attr(value, self.package_dir, self.root_dir))
File "C:\Users\abhis\AppData\Local\Temp\pip-build-env-l2t7s_bi\overlay\Lib\site-packages\setuptools\config\setupcfg.py", line 377, in _parse_attr
return expand.read_attr(attr_desc, package_dir, root_dir)
File "C:\Users\abhis\AppData\Local\Temp\pip-build-env-l2t7s_bi\overlay\Lib\site-packages\setuptools\config\expand.py", line 192, in read_attr
module = _load_spec(spec, module_name)
File "C:\Users\abhis\AppData\Local\Temp\pip-build-env-l2t7s_bi\overlay\Lib\site-packages\setuptools\config\expand.py", line 212, in _load_spec
spec.loader.exec_module(module) # type: ignore
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "C:\Users\abhis\AppData\Local\Temp\pip-install-oxwzokmn\pyinstaller_8996853206574e95a5a7117dbcd6cb01\PyInstaller.py", line 16, in <module>
from PyInstaller.__main__ import run
ModuleNotFoundError: No module named 'PyInstaller.__main__'; 'PyInstaller' is not a package
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

The error is located specifically in the pyproject.toml file. .toml files are used to do configuration in project using a minimalist language. It's mainly used to point the author of the project and its contact, a server direction with its accessible ports, an url to an API to scrap data, etc.
It seems that its an internal bug in the configuration of that file, which is used on the installment of PyInstaller. I recommend checking if that version is unstable. Try installing the previous one.
pip3 install --no-cache-dir pyinstaller==4.2

Related

I'm trying to install autogluon from sagemaker, but I keep getting errors

!pip install --upgrade mxnet-cu100
!pip install autogluon
The error continues to occur when the above two codes are executed in sagemaker studio.
Collecting seqeval<=1.2.2
Using cached seqeval-1.2.2.tar.gz (43 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [42 lines of output]
/opt/conda/lib/python3.7/site-packages/pkg_resources/__init__.py:126: PkgResourcesDeprecationWarning: 4.0.0-unsupported is an invalid version and will not be supported in a future release
PkgResourcesDeprecationWarning,
/opt/conda/lib/python3.7/site-packages/setuptools/installer.py:30: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
SetuptoolsDeprecationWarning,
Traceback (most recent call last):
File "<string>", line 36, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-b9s5vfp9/seqeval_f21cd9e2f7e648ce8f203ea1e6d8ee59/setup.py", line 56, in <module>
'Programming Language :: Python :: Implementation :: PyPy'
File "/opt/conda/lib/python3.7/site-packages/setuptools/__init__.py", line 86, in setup
_install_setup_requires(attrs)
File "/opt/conda/lib/python3.7/site-packages/setuptools/__init__.py", line 80, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "/opt/conda/lib/python3.7/site-packages/setuptools/dist.py", line 877, in fetch_build_eggs
replace_conflicting=True,
File "/opt/conda/lib/python3.7/site-packages/pkg_resources/__init__.py", line 791, in resolve
replace_conflicting=replace_conflicting
File "/opt/conda/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1075, in best_match
return self.obtain(req, installer)
File "/opt/conda/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1087, in obtain
return installer(requirement)
File "/opt/conda/lib/python3.7/site-packages/setuptools/dist.py", line 944, in fetch_build_egg
return fetch_build_egg(self, req)
File "/opt/conda/lib/python3.7/site-packages/setuptools/installer.py", line 87, in fetch_build_egg
wheel.install_as_egg(dist_location)
File "/opt/conda/lib/python3.7/site-packages/setuptools/wheel.py", line 110, in install_as_egg
self._install_as_egg(destination_eggdir, zf)
File "/opt/conda/lib/python3.7/site-packages/setuptools/wheel.py", line 118, in _install_as_egg
self._convert_metadata(zf, destination_eggdir, dist_info, egg_info)
File "/opt/conda/lib/python3.7/site-packages/setuptools/wheel.py", line 170, in _convert_metadata
extras_require=extras_require,
File "/opt/conda/lib/python3.7/site-packages/setuptools/dist.py", line 479, in __init__
for k, v in attrs.items()
File "/opt/conda/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 283, in __init__
self.finalize_options()
File "/opt/conda/lib/python3.7/site-packages/setuptools/dist.py", line 898, in finalize_options
for ep in sorted(loaded, key=by_order):
File "/opt/conda/lib/python3.7/site-packages/setuptools/dist.py", line 897, in <lambda>
loaded = map(lambda e: e.load(), filtered)
File "/opt/conda/lib/python3.7/site-packages/setuptools/_vendor/importlib_metadata/__init__.py", line 196, in load
return functools.reduce(getattr, attrs, module)
AttributeError: type object 'Distribution' has no attribute '_finalize_feature_opts'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
import autogluon as ag
from autogluon import TabularDataset as task
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-5-74ced3fb9150> in <module>
----> 1 import autogluon as ag
2 from autogluon import TabularDataset as task
ModuleNotFoundError: No module named 'autogluon'
There was an error during installation, so of course the module is not loaded. How do I resolve this error?

how to install mysqlclient python library in linux?

I have a Django project and I want to deploy it on a server.But I'm unable to connect mysql.
I have tried different alternatives but I can't fixed this problem.(I have kali linux operating system)
This is the error I am receiving when installing mysqlclient:
pip install mysqlclient==2.0.0 1 ⨯
Collecting mysqlclient==2.0.0
Downloading mysqlclient-2.0.0.tar.gz (87 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 87.9/87.9 kB 1.4 MB/s eta 0:00:00
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [13 lines of output]
/bin/sh: 1: mysql_config: not found
/bin/sh: 1: mariadb_config: not found
/bin/sh: 1: mysql_config: not found
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-go97vzkz/mysqlclient_85ab5f5ba17f42dcba9e2b66191c32e1/setup.py", line 15, in <module>
metadata, options = get_config()
File "/tmp/pip-install-go97vzkz/mysqlclient_85ab5f5ba17f42dcba9e2b66191c32e1/setup_posix.py", line 65, in get_config
libs = mysql_config("libs")
File "/tmp/pip-install-go97vzkz/mysqlclient_85ab5f5ba17f42dcba9e2b66191c32e1/setup_posix.py", line 31, in mysql_config
raise OSError("{} not found".format(_mysql_config_path))
OSError: mysql_config not found
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
This is the error I am receiving when I save 'settings.py':
python manage.py runserver
Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
File "/home/kmandi/anaconda3/lib/python3.8/site-packages/django/db/backends/mysql/base.py", line 15, in <module>
import MySQLdb as Database
ModuleNotFoundError: No module named 'MySQLdb'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/kmandi/anaconda3/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/home/kmandi/anaconda3/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/home/kmandi/anaconda3/lib/python3.8/site-packages/django/utils/autoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "/home/kmandi/anaconda3/lib/python3.8/site-packages/django/core/management/commands/runserver.py", line 125, in inner_run
autoreload.raise_last_exception()
File "/home/kmandi/anaconda3/lib/python3.8/site-packages/django/utils/autoreload.py", line 87, in raise_last_exception
raise _exception[1]
File "/home/kmandi/anaconda3/lib/python3.8/site-packages/django/core/management/__init__.py", line 398, in execute
autoreload.check_errors(django.setup)()
File "/home/kmandi/anaconda3/lib/python3.8/site-packages/django/utils/autoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "/home/kmandi/anaconda3/lib/python3.8/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/kmandi/anaconda3/lib/python3.8/site-packages/django/apps/registry.py", line 116, in populate
app_config.import_models()
File "/home/kmandi/anaconda3/lib/python3.8/site-packages/django/apps/config.py", line 269, in import_models
self.models_module = import_module(models_module_name)
File "/home/kmandi/anaconda3/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/kmandi/anaconda3/lib/python3.8/site-packages/django/contrib/auth/models.py", line 3, in <module>
from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager
File "/home/kmandi/anaconda3/lib/python3.8/site-packages/django/contrib/auth/base_user.py", line 49, in <module>
class AbstractBaseUser(models.Model):
File "/home/kmandi/anaconda3/lib/python3.8/site-packages/django/db/models/base.py", line 141, in __new__
new_class.add_to_class("_meta", Options(meta, app_label))
File "/home/kmandi/anaconda3/lib/python3.8/site-packages/django/db/models/base.py", line 369, in add_to_class
value.contribute_to_class(cls, name)
File "/home/kmandi/anaconda3/lib/python3.8/site-packages/django/db/models/options.py", line 231, in contribute_to_class
self.db_table, connection.ops.max_name_length()
File "/home/kmandi/anaconda3/lib/python3.8/site-packages/django/utils/connection.py", line 15, in __getattr__
return getattr(self._connections[self._alias], item)
File "/home/kmandi/anaconda3/lib/python3.8/site-packages/django/utils/connection.py", line 62, in __getitem__
conn = self.create_connection(alias)
File "/home/kmandi/anaconda3/lib/python3.8/site-packages/django/db/utils.py", line 193, in create_connection
backend = load_backend(db["ENGINE"])
File "/home/kmandi/anaconda3/lib/python3.8/site-packages/django/db/utils.py", line 113, in load_backend
return import_module("%s.base" % backend_name)
File "/home/kmandi/anaconda3/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/kmandi/anaconda3/lib/python3.8/site-packages/django/db/backends/mysql/base.py", line 17, in <module>
raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
Did you install mysqlclient?
You will need some additional libraries installed.
Please refer to its project description: https://pypi.org/project/mysqlclient/
Linux
Note that this is a basic step. I can not support complete step for build for all environment. If you can see some error, you should fix it by yourself, or ask for support in some user forum. Don't file a issue on the issue tracker.
You may need to install the Python 3 and MySQL development headers and libraries like so:
$ sudo apt-get install python3-dev default-libmysqlclient-dev build-essential # Debian / Ubuntu
% sudo yum install python3-devel mysql-devel # Red Hat / CentOS
Then you can install mysqlclient via pip now:
$ pip install mysqlclient
Hope it helps!
First install python 3.6.5, then run
pip install mysqlclient==1.3.12
sudo apt-get install python-dev default-libmysqlclient-dev
sudo apt-get install python3-dev
pip install mysqlclient
Assume you are activating Python 3 venv
brew install mysql
pip install mysqlclient
Step 1: Installing MySQL Client
You can install MySQL client directly through pip using the command
pip install mysqlclient

How to install numpy with BLAS interface specified as vecLib on new MacBook Air M2

I got an error when installing numpy, I can't use apple vecLib to accelerate my numpy:
pip install --no-binary :all: --no-use-pep517 numpy
Collecting numpy
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/0a/88/f4f0c7a982efdf7bf22f283acf6009b29a9cc5835b684a49f8d3a4adb22f/numpy-1.23.3.tar.gz (10.7 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [76 lines of output]
running egg_info
running build_src
INFO: build_src
creating /private/var/folders/_m/w24nrz_106vdryhx686b6p080000gn/T/pip-pip-egg-info-skoxm5qe/numpy.egg-info
writing /private/var/folders/_m/w24nrz_106vdryhx686b6p080000gn/T/pip-pip-egg-info-skoxm5qe/numpy.egg-info/PKG-INFO
writing dependency_links to /private/var/folders/_m/w24nrz_106vdryhx686b6p080000gn/T/pip-pip-egg-info-skoxm5qe/numpy.egg-info/dependency_links.txt
writing entry points to /private/var/folders/_m/w24nrz_106vdryhx686b6p080000gn/T/pip-pip-egg-info-skoxm5qe/numpy.egg-info/entry_points.txt
writing top-level names to /private/var/folders/_m/w24nrz_106vdryhx686b6p080000gn/T/pip-pip-egg-info-skoxm5qe/numpy.egg-info/top_level.txt
writing manifest file '/private/var/folders/_m/w24nrz_106vdryhx686b6p080000gn/T/pip-pip-egg-info-skoxm5qe/numpy.egg-info/SOURCES.txt'
INFO: unifing config_cc, config, build_clib, build_ext, build commands --compiler options
INFO: unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
Running from numpy source directory.
/private/var/folders/_m/w24nrz_106vdryhx686b6p080000gn/T/pip-install-qs928g7e/numpy_7e29e57978cf4337a675b187504ff03a/setup.py:86: DeprecationWarning:
`numpy.distutils` is deprecated since NumPy 1.23.0, as a result
of the deprecation of `distutils` itself. It will be removed for
Python >= 3.12. For older Python versions it will remain present.
It is recommended to use `setuptools < 60.0` for those Python versions.
For more details, see:
https://numpy.org/devdocs/reference/distutils_status_migration.html
import numpy.distutils.command.sdist
/Users/ycshu/anaconda3/envs/YC/lib/python3.8/site-packages/setuptools/command/egg_info.py:643: SetuptoolsDeprecationWarning: Custom 'build_py' does not implement 'get_data_files_without_manifest'.
Please extend command classes from setuptools instead of distutils.
warnings.warn(
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/_m/w24nrz_106vdryhx686b6p080000gn/T/pip-install-qs928g7e/numpy_7e29e57978cf4337a675b187504ff03a/setup.py", line 494, in <module>
setup_package()
File "/private/var/folders/_m/w24nrz_106vdryhx686b6p080000gn/T/pip-install-qs928g7e/numpy_7e29e57978cf4337a675b187504ff03a/setup.py", line 486, in setup_package
setup(**metadata)
File "/Users/ycshu/anaconda3/envs/YC/lib/python3.8/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/Users/ycshu/anaconda3/envs/YC/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/Users/ycshu/anaconda3/envs/YC/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/Users/ycshu/anaconda3/envs/YC/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 973, in run_commands
self.run_command(cmd)
File "/Users/ycshu/anaconda3/envs/YC/lib/python3.8/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/Users/ycshu/anaconda3/envs/YC/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 992, in run_command
cmd_obj.run()
File "/private/var/folders/_m/w24nrz_106vdryhx686b6p080000gn/T/pip-install-qs928g7e/numpy_7e29e57978cf4337a675b187504ff03a/numpy/distutils/command/egg_info.py", line 25, in run
_egg_info.run(self)
File "/Users/ycshu/anaconda3/envs/YC/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 308, in run
self.find_sources()
File "/Users/ycshu/anaconda3/envs/YC/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 316, in find_sources
mm.run()
File "/Users/ycshu/anaconda3/envs/YC/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 560, in run
self.add_defaults()
File "/Users/ycshu/anaconda3/envs/YC/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 597, in add_defaults
sdist.add_defaults(self)
File "/Users/ycshu/anaconda3/envs/YC/lib/python3.8/site-packages/setuptools/command/sdist.py", line 107, in add_defaults
self._add_defaults_build_sub_commands()
File "/Users/ycshu/anaconda3/envs/YC/lib/python3.8/site-packages/setuptools/command/sdist.py", line 127, in _add_defaults_build_sub_commands
self.filelist.extend(chain.from_iterable(files))
File "/Users/ycshu/anaconda3/envs/YC/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 503, in extend
self.files.extend(filter(self._safe_path, paths))
File "/Users/ycshu/anaconda3/envs/YC/lib/python3.8/site-packages/setuptools/command/sdist.py", line 126, in <genexpr>
files = (c.get_source_files() for c in cmds if hasattr(c, "get_source_files"))
File "/Users/ycshu/anaconda3/envs/YC/lib/python3.8/site-packages/setuptools/command/sdist.py", line 125, in <genexpr>
cmds = (self.get_finalized_command(c) for c in missing_cmds)
File "/Users/ycshu/anaconda3/envs/YC/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 306, in get_finalized_command
cmd_obj.ensure_finalized()
File "/Users/ycshu/anaconda3/envs/YC/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 109, in ensure_finalized
self.finalize_options()
File "/private/var/folders/_m/w24nrz_106vdryhx686b6p080000gn/T/pip-install-qs928g7e/numpy_7e29e57978cf4337a675b187504ff03a/numpy/distutils/command/config_compiler.py", line 69, in finalize_options
v = getattr(c, a)
File "/Users/ycshu/anaconda3/envs/YC/lib/python3.8/site-packages/Cython/Distutils/old_build_ext.py", line 157, in __getattr__
return _build_ext.build_ext.__getattr__(self, name)
File "/Users/ycshu/anaconda3/envs/YC/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 105, in __getattr__
raise AttributeError(attr)
AttributeError: fcompiler
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Having a hard time installing a python module (torchseq)

I am trying to install this module. When I run the command
pip install -r requirements.txt
I get the following:
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [32 lines of output]
Traceback (most recent call last):
File "/Users/voi/Library/Python/3.8/lib/python/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
main()
File "/Users/voi/Library/Python/3.8/lib/python/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Users/voi/Library/Python/3.8/lib/python/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
return hook(config_settings)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/build_meta.py", line 146, in get_requires_for_build_wheel
return self._get_build_requires(
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/build_meta.py", line 127, in _get_build_requires
self.run_setup()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/build_meta.py", line 142, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 8, in <module>
setup(
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/__init__.py", line 165, in setup
return distutils.core.setup(**attrs)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/dist.py", line 429, in __init__
_Distribution.__init__(self, {
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 293, in __init__
self.finalize_options()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/dist.py", line 721, in finalize_options
ep(self)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/dist.py", line 727, in _finalize_setup_keywords
ep.require(installer=self.fetch_build_egg)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2483, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 790, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (setuptools 49.2.1 (/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages), Requirement.parse('setuptools>=58.0'))
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
I have no earthly idea on what to do. I have tried doing this directly in terminal as well as in a virtual environment and neither has worked.

Cannot pip install atlassian-python-api due to subprocess-exited-with-error

I am trying to install the atlassian-python-api using pip but upon trying to do so, I get the following error: Getting requirements to build wheel ... error: subprocess-exited-with-error.
I am running Python version 3.10.0a2 installed through pyenv-win. I am not exactly sure what could be causing this, but here is my full command output for a better understanding:
(venv) PS > pip install atlassian-python-api
Collecting atlassian-python-api
Using cached atlassian-python-api-3.20.1.tar.gz (131 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [26 lines of output]
Traceback (most recent call last):
File "venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
main()
File "venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 130, in get_requires_for_build_wheel
return hook(config_settings)
File "AppData\Local\Temp\pip-build-env-mzcohtxb\overlay\Lib\site-packages\setuptools\build_meta.py", line 177, in get_requires_for_build_wheel
return self._get_build_requires(
File "AppData\Local\Temp\pip-build-env-mzcohtxb\overlay\Lib\site-packages\setuptools\build_meta.py", line 159, in _get_build_requires
self.run_setup()
File "AppData\Local\Temp\pip-build-env-mzcohtxb\overlay\Lib\site-packages\setuptools\build_meta.py", line 281, in run_setup
super(_BuildMetaLegacyBackend,
File "AppData\Local\Temp\pip-build-env-mzcohtxb\overlay\Lib\site-packages\setuptools\build_meta.py", line 174, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 11, in <module>
setup(
File "AppData\Local\Temp\pip-build-env-mzcohtxb\overlay\Lib\site-packages\setuptools\__init__.py", line 154, in setup
_install_setup_requires(attrs)
File "AppData\Local\Temp\pip-build-env-mzcohtxb\overlay\Lib\site-packages\setuptools\__init__.py", line 143, in _install_setup_requires
dist = MinimalDistribution(attrs)
File "AppData\Local\Temp\pip-build-env-mzcohtxb\overlay\Lib\site-packages\setuptools\__init__.py", line 135, in __init__
super().__init__(filtered)
File "AppData\Local\Temp\pip-build-env-mzcohtxb\overlay\Lib\site-packages\setuptools\dist.py", line 456, in __init__
for ep in metadata.entry_points(group='distutils.setup_keywords'):
TypeError: entry_points() got an unexpected keyword argument 'group'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

Categories