LoginSignup
0
0

More than 5 years have passed since last update.

Visual Studio CodeでPython開発環境を整える。続けてsympyを実行できるようにしました。

Last updated at Posted at 2018-12-06

(参考)Visual Studio CodeでPython開発環境を整える
https://qiita.com/84zume/items/27d143f529396c9fa1cc

設定中に以下のメッセージが画面に表示されました。

「
Linter pylint is not installed.
ソース:python(拡張機能) Install Disable pylint Disable linting
」

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\xxx>python -m pip install -U pylint --user
Collecting pylint
  Downloading https://files.pythonhosted.org/packages/a5/06/ecef826f319055e6b231716730d7f9047dd7524ffda224b521d989f085b6/pylint-2.2.2-py3-none-any.whl (750kB)
    100% |????????????????????????????????| 757kB 1.2MB/s
Collecting isort>=4.2.5 (from pylint)
  Downloading https://files.pythonhosted.org/packages/1f/2c/22eee714d7199ae0464beda6ad5fedec8fee6a2f7ffd1e8f1840928fe318/isort-4.3.4-py3-none-any.whl (45kB)
    100% |????????????????????????????????| 51kB 5.1MB/s
Collecting colorama; sys_platform == "win32" (from pylint)
  Downloading https://files.pythonhosted.org/packages/4f/a6/728666f39bfff1719fc94c481890b2106837da9318031f71a8424b662e12/colorama-0.4.1-py2.py3-none-any.whl
Collecting astroid>=2.0.0 (from pylint)
  Downloading https://files.pythonhosted.org/packages/fc/53/8809bc008bad0300897281a7b320b286dc0e84e836396c0cff6279841e8a/astroid-2.1.0-py3-none-any.whl (176kB)
    100% |????????????????????????????????| 184kB 3.2MB/s
Collecting mccabe (from pylint)
  Downloading https://files.pythonhosted.org/packages/87/89/479dc97e18549e21354893e4ee4ef36db1d237534982482c3681ee6e7b57/mccabe-0.6.1-py2.py3-none-any.whl
Collecting six (from astroid>=2.0.0->pylint)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting typed-ast; python_version < "3.7" and implementation_name == "cpython" (from astroid>=2.0.0->pylint)
  Downloading https://files.pythonhosted.org/packages/7b/82/c753ca087cf595309ccbc51672760c9ea4cfa96782ed8da53b31acd019b3/typed_ast-1.1.0-cp36-cp36m-win_amd64.whl (147kB)
    100% |????????????????????????????????| 153kB 4.3MB/s
Collecting lazy-object-proxy (from astroid>=2.0.0->pylint)
  Downloading https://files.pythonhosted.org/packages/7c/71/e7a10cab32c9fc37467e2f211a46328784a07bc5d7a977b1fe6b01a5f1a1/lazy_object_proxy-1.3.1-cp36-cp36m-win_amd64.whl
Collecting wrapt (from astroid>=2.0.0->pylint)
  Downloading https://files.pythonhosted.org/packages/a0/47/66897906448185fcb77fc3c2b1bc20ed0ecca81a0f2f88eda3fc5a34fc3d/wrapt-1.10.11.tar.gz
Installing collected packages: isort, colorama, six, typed-ast, lazy-object-proxy, wrapt, astroid, mccabe, pylint
  Running setup.py install for wrapt ... done
Successfully installed astroid-2.1.0 colorama-0.4.1 isort-4.3.4 lazy-object-proxy-1.3.1 mccabe-0.6.1 pylint-2.2.2 six-1.11.0 typed-ast-1.1.0 wrapt-1.10.11
You are using pip version 9.0.3, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

「
Python 3.6.5 64-bit x0 !0
」

「
例外が発生しました: ModuleNotFoundError
No module named 'sympy'
  File "C:\Users\xxx\Desktop\xxx.py", line 1, in <module>
    from sympy import *
」

「
You are using pip version 9.0.3, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
」

「
c:\Users\xxx\Desktop>pip install sympy
Collecting sympy
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/dd/f6/ed485ff22efdd7b371d0dbbf6d77ad61c3b3b7e0815a83c89cbb38ce35de/sympy-1.3.tar.gz (5.9MB)
    100% |????????????????????????????????| 5.9MB 222kB/s
Collecting mpmath>=0.19 (from sympy)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/7a/05/b3d1472885d8dc0606936ea5da0ccb1b4785682e78ab15e34ada24aea8d5/mpmath-1.0.0.tar.gz (511kB)
    100% |????????????????????????????????| 512kB 726kB/s
Installing collected packages: mpmath, sympy
  Running setup.py install for mpmath ... done
  Running setup.py install for sympy ... done
Successfully installed mpmath-1.0.0 sympy-1.3
You are using pip version 9.0.3, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
」

sympyが実行できました。

コメント

pycharmとwinmergeを使っています。
vscodeで比較も使ってみたい。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0