A
A
Asya2017-11-16 21:49:46
Python
Asya, 2017-11-16 21:49:46

How to install modules/packages in PyCharm?

I can easily install all the basic packages, but when installing any others, the following error appears:
5a0dddaa2f577522750306.png

mistake
Collecting tmtoolkit
  Downloading tmtoolkit-0.1.6-py2.py3-none-any.whl (15.3MB)
Collecting pandas (from tmtoolkit)
  Downloading pandas-0.21.0.tar.gz (11.3MB)
    Complete output from command python setup.py egg_info:
    Running from numpy source directory.
    C:\Users\5A86~1\AppData\Local\Temp\easy_install-bz49tq70\numpy-1.13.3\setup.py:367: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
      run_build = parse_setuppy_commands()
    C:\Users\5A86~1\AppData\Local\Temp\easy_install-bz49tq70\numpy-1.13.3\numpy\distutils\system_info.py:572: UserWarning:
        Atlas (http://math-atlas.sourceforge.net/) libraries not found.
        Directories to search for the libraries can be specified in the
        numpy/distutils/site.cfg file (section [atlas]) or by setting
        the ATLAS environment variable.
      self.calc_info()
    C:\Users\5A86~1\AppData\Local\Temp\easy_install-bz49tq70\numpy-1.13.3\numpy\distutils\system_info.py:572: UserWarning:
        Blas (http://www.netlib.org/blas/) libraries not found.
        Directories to search for the libraries can be specified in the
        numpy/distutils/site.cfg file (section [blas]) or by setting
        the BLAS environment variable.
      self.calc_info()
    non-existing path in 'numpy\\distutils': 'site.cfg'
    C:\Users\5A86~1\AppData\Local\Temp\easy_install-bz49tq70\numpy-1.13.3\numpy\distutils\system_info.py:572: UserWarning:
        Lapack (http://www.netlib.org/lapack/) libraries not found.
        Directories to search for the libraries can be specified in the
        numpy/distutils/site.cfg file (section [lapack]) or by setting
        the LAPACK environment variable.
      self.calc_info()
    C:\Users\5A86~1\AppData\Local\Temp\easy_install-bz49tq70\numpy-1.13.3\numpy\distutils\system_info.py:572: UserWarning:
        Lapack (http://www.netlib.org/lapack/) sources not found.
        Directories to search for the sources can be specified in the
        numpy/distutils/site.cfg file (section [lapack_src]) or by setting
        the LAPACK_SRC environment variable.
      self.calc_info()
    C:\Python34\lib\distutils\dist.py:260: UserWarning: Unknown distribution option: 'define_macros'
      warnings.warn(msg)
    Traceback (most recent call last):
      File "C:\Python34\lib\distutils\core.py", line 148, in setup
        dist.run_commands()
      File "C:\Python34\lib\distutils\dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "C:\Python34\lib\distutils\dist.py", line 974, in run_command
        cmd_obj.run()
      File "C:\Python34\lib\site-packages\setuptools\command\bdist_egg.py", line 161, in run
        self.run_command("egg_info")
      File "C:\Python34\lib\distutils\cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "C:\Python34\lib\distutils\dist.py", line 974, in run_command
        cmd_obj.run()
      File "C:\Users\5A86~1\AppData\Local\Temp\easy_install-bz49tq70\numpy-1.13.3\numpy\distutils\command\egg_info.py", line 26, in run
      File "C:\Python34\lib\distutils\cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "C:\Python34\lib\distutils\dist.py", line 974, in run_command
        cmd_obj.run()
      File "C:\Users\5A86~1\AppData\Local\Temp\easy_install-bz49tq70\numpy-1.13.3\numpy\distutils\command\build_src.py", line 148, in run
      File "C:\Users\5A86~1\AppData\Local\Temp\easy_install-bz49tq70\numpy-1.13.3\numpy\distutils\command\build_src.py", line 159, in build_sources
      File "C:\Users\5A86~1\AppData\Local\Temp\easy_install-bz49tq70\numpy-1.13.3\numpy\distutils\command\build_src.py", line 294, in build_library_sources
      File "C:\Users\5A86~1\AppData\Local\Temp\easy_install-bz49tq70\numpy-1.13.3\numpy\distutils\command\build_src.py", line 377, in generate_sources
      File "numpy\core\setup.py", line 672, in get_mathlib_info
        'pandas.tests',
      File "C:\Python34\lib\distutils\command\config.py", line 243, in try_link
        self._check_compiler()
      File "C:\Users\5A86~1\AppData\Local\Temp\easy_install-bz49tq70\numpy-1.13.3\numpy\distutils\command\config.py", line 51, in _check_compiler
      File "C:\Users\5A86~1\AppData\Local\Temp\easy_install-bz49tq70\numpy-1.13.3\numpy\distutils\msvccompiler.py", line 50, in initialize
      File "C:\Python34\lib\distutils\msvc9compiler.py", line 371, in initialize
        vc_env = query_vcvarsall(VERSION, plat_spec)
      File "C:\Python34\lib\site-packages\setuptools\msvc.py", line 147, in msvc9_query_vcvarsall
        return EnvironmentInfo(arch, ver).return_env()
      File "C:\Python34\lib\site-packages\setuptools\msvc.py", line 1228, in return_env
        [self.VCIncludes,
      File "C:\Python34\lib\site-packages\setuptools\msvc.py", line 877, in VCIncludes
        return [os.path.join(self.si.VCInstallDir, 'Include'),
      File "C:\Python34\lib\site-packages\setuptools\msvc.py", line 556, in VCInstallDir
        raise distutils.errors.DistutilsPlatformError(msg)
    distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 10.0 is required. Get it with "Microsoft Windows SDK 7.1": www.microsoft.com/download/details.aspx?id=8279
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\Python34\lib\site-packages\setuptools\sandbox.py", line 158, in save_modules
        yield saved
      File "C:\Python34\lib\site-packages\setuptools\sandbox.py", line 199, in setup_context
        yield
      File "C:\Python34\lib\site-packages\setuptools\sandbox.py", line 254, in run_setup
        _execfile(setup_script, ns)
      File "C:\Python34\lib\site-packages\setuptools\sandbox.py", line 49, in _execfile
        exec(code, globals, locals)
      File "C:\Users\5A86~1\AppData\Local\Temp\easy_install-bz49tq70\numpy-1.13.3\setup.py", line 392, in <module>
        def build_extension(self, ext):
      File "C:\Users\5A86~1\AppData\Local\Temp\easy_install-bz49tq70\numpy-1.13.3\setup.py", line 384, in setup_package
        self.check_cython_extensions(self.extensions)
      File "C:\Users\5A86~1\AppData\Local\Temp\easy_install-bz49tq70\numpy-1.13.3\numpy\distutils\core.py", line 169, in setup
      File "C:\Python34\lib\site-packages\setuptools\__init__.py", line 129, in setup
        return distutils.core.setup(**attrs)
      File "C:\Python34\lib\distutils\core.py", line 163, in setup
        raise SystemExit("error: " + str(msg))
    SystemExit: error: Microsoft Visual C++ 10.0 is required. Get it with "Microsoft Windows SDK 7.1": www.microsoft.com/download/details.aspx?id=8279
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", line 1104, in run_setup
        run_setup(setup_script, args)
      File "C:\Python34\lib\site-packages\setuptools\sandbox.py", line 257, in run_setup
        raise
      File "C:\Python34\lib\contextlib.py", line 77, in __exit__
        self.gen.throw(type, value, traceback)
      File "C:\Python34\lib\site-packages\setuptools\sandbox.py", line 199, in setup_context
        yield
      File "C:\Python34\lib\contextlib.py", line 77, in __exit__
        self.gen.throw(type, value, traceback)
      File "C:\Python34\lib\site-packages\setuptools\sandbox.py", line 170, in save_modules
        saved_exc.resume()
      File "C:\Python34\lib\site-packages\setuptools\sandbox.py", line 145, in resume
        six.reraise(type, exc, self._tb)
      File "C:\Python34\lib\site-packages\pkg_resources\_vendor\six.py", line 685, in reraise
        raise value.with_traceback(tb)
      File "C:\Python34\lib\site-packages\setuptools\sandbox.py", line 158, in save_modules
        yield saved

      File "C:\Python34\lib\site-packages\setuptools\__init__.py", line 129, in setup
        return distutils.core.setup(**attrs)
      File "C:\Python34\lib\distutils\core.py", line 163, in setup
        raise SystemExit("error: " + str(msg))
    SystemExit: error: Microsoft Visual C++ 10.0 is required. Get it with "Microsoft Windows SDK 7.1": www.microsoft.com/download/details.aspx?id=8279
    
 
        ----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in C:\Users\Блаблабла\AppData\Local\Temp\pycharm-packaging1\pandas\

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
eugenyg, 2017-11-16
@asyaevloeva

You need a C ++ compiler, look at the solutions here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question