简体   繁体   中英

cant install packages using pip install

Anyone could tell me what this error might mean, please? I cannot install any packages using pip. Conda does not help either.

collecting pynrrd
  Using cached https://files.pythonhosted.org/packages/75/db/d0b421a9cbf84ce2af6f95e433f472b6a49e27e9355c027c8680ca9163af/pynrrd-0.4.0-py2.py3-none-any.whl
Requirement already satisfied: numpy>=1.11.1 in /anaconda3/lib/python3.7/site-packages (from pynrrd) (1.16.2)
Installing collected packages: pynrrd
Exception:
Traceback (most recent call last):
  File "/anaconda3/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 179, in main
    status = self.run(options, args)
  File "/anaconda3/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 393, in run
    use_user_site=options.use_user_site,
  File "/anaconda3/lib/python3.7/site-packages/pip/_internal/req/__init__.py", line 57, in install_given_reqs
    **kwargs
  File "/anaconda3/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 913, in install
    use_user_site=use_user_site, pycompile=pycompile,
  File "/anaconda3/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 445, in move_wheel_files
    warn_script_location=warn_script_location,
  File "/anaconda3/lib/python3.7/site-packages/pip/_internal/wheel.py", line 320, in move_wheel_files
    prefix=prefix,
  File "/anaconda3/lib/python3.7/site-packages/pip/_internal/locations.py", line 166, in distutils_scheme
    d.parse_config_files()
  File "/anaconda3/lib/python3.7/distutils/dist.py", line 406, in parse_config_files
    parser.read(filename)
  File "/anaconda3/lib/python3.7/configparser.py", line 696, in read
    self._read(fp, filename)
  File "/anaconda3/lib/python3.7/configparser.py", line 1079, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)
configparser.MissingSectionHeaderError: File contains no section headers.
file: 'setup.cfg', line: 1
' &SETUP\n'
Note: you may need to restart the kernel to use updated packages.

For conda this is the error that I am getting.

PackagesNotFoundError: The following packages are not available from current channels:

  - pynrrd

To install this package with conda run: conda install -c kayarre pynrrd

you will see this on the conda website too. https://anaconda.org/kayarre/pynrrd

Please let me know if this works.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM