1. conda 업데이트

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
(base) C:\Users\Admin>conda update -n base conda
Solving environment: done
 
## Package Plan ##
 
  environment location: C:\Users\Admin\Anaconda3
 
  added / updated specs:
    - conda
 
 
The following packages will be downloaded:
 
    package                    |            build
    ---------------------------|-----------------
    conda-4.5.8                |           py36_0         1.0 MB
 
The following packages will be UPDATED:
 
    certifi: 2018.4.16-py36_0 conda-forge --> 2018.4.16-py36_0
    conda:   4.5.5-py36_0     conda-forge --> 4.5.8-py36_0
 
Proceed ([y]/n)? y
 
 
Downloading and Extracting Packages
conda-4.5.8          |  1.0 MB | ########################################################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
 
cs


2. 텐서플로우 설치

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
(base) C:\Users\Admin>pip install tensorflow
Collecting tensorflow
  Downloading https://files.pythonhosted.org/packages/e7/88/417f18ca7eed5ba9bebd51650d04a4af929f96c10a10fbb3302196f8d098/tensorflow-1.9.0-cp36-cp36m-win_amd64.whl (37.1MB)
    100% |████████████████████████████████| 37.1MB 503kB/s
Collecting protobuf>=3.4.0 (from tensorflow)
  Downloading https://files.pythonhosted.org/packages/75/7a/0dba607e50b97f6a89fa3f96e23bf56922fa59d748238b30507bfe361bbc/protobuf-3.6.0-cp36-cp36m-win_amd64.whl (1.1MB)
    100% |████████████████████████████████| 1.1MB 1.8MB/s
Collecting tensorboard<1.10.0,>=1.9.0 (from tensorflow)
  Downloading https://files.pythonhosted.org/packages/9e/1f/3da43860db614e294a034e42d4be5c8f7f0d2c75dc1c428c541116d8cdab/tensorboard-1.9.0-py3-none-any.whl (3.3MB)
    100% |████████████████████████████████| 3.3MB 3.0MB/s
Requirement already satisfied: wheel>=0.26 in c:\users\admin\anaconda3\lib\site-packages (from tensorflow) (0.31.1)
Collecting grpcio>=1.8.6 (from tensorflow)
  Downloading https://files.pythonhosted.org/packages/d5/c6/15728549704f9c03db7179b7f99303b91b7703e18a50f5e7b47e59b289ea/grpcio-1.13.0-cp36-cp36m-win_amd64.whl (1.4MB)
    100% |████████████████████████████████| 1.4MB 2.5MB/s
Collecting absl-py>=0.1.6 (from tensorflow)
  Downloading https://files.pythonhosted.org/packages/57/8d/6664518f9b6ced0aa41cf50b989740909261d4c212557400c48e5cda0804/absl-py-0.2.2.tar.gz (82kB)
    100% |████████████████████████████████| 92kB 3.2MB/s
Collecting astor>=0.6.0 (from tensorflow)
  Downloading https://files.pythonhosted.org/packages/35/6b/11530768cac581a12952a2aad00e1526b89d242d0b9f59534ef6e6a1752f/astor-0.7.1-py2.py3-none-any.whl
Collecting gast>=0.2.0 (from tensorflow)
  Downloading https://files.pythonhosted.org/packages/5c/78/ff794fcae2ce8aa6323e789d1f8b3b7765f601e7702726f430e814822b96/gast-0.2.0.tar.gz
Requirement already satisfied: numpy>=1.13.3 in c:\users\admin\anaconda3\lib\site-packages (from tensorflow) (1.14.3)
Requirement already satisfied: six>=1.10.0 in c:\users\admin\anaconda3\lib\site-packages (from tensorflow) (1.11.0)
Requirement already satisfied: setuptools<=39.1.0 in c:\users\admin\anaconda3\lib\site-packages (from tensorflow) (39.1.0)
Collecting termcolor>=1.1.0 (from tensorflow)
  Downloading https://files.pythonhosted.org/packages/8a/48/a76be51647d0eb9f10e2a4511bf3ffb8cc1e6b14e9e4fab46173aa79f981/termcolor-1.1.0.tar.gz
Requirement already satisfied: werkzeug>=0.11.10 in c:\users\admin\anaconda3\lib\site-packages (from tensorboard<1.10.0,>=1.9.0->tensorflow) (0.14.1)
Collecting markdown>=2.6.8 (from tensorboard<1.10.0,>=1.9.0->tensorflow)
  Downloading https://files.pythonhosted.org/packages/6d/7d/488b90f470b96531a3f5788cf12a93332f543dbab13c423a5e7ce96a0493/Markdown-2.6.11-py2.py3-none-any.whl (78kB)
    100% |████████████████████████████████| 81kB 2.8MB/s
Building wheels for collected packages: absl-py, gast, termcolor
  Running setup.py bdist_wheel for absl-py ... done
  Stored in directory: C:\Users\Admin\AppData\Local\pip\Cache\wheels\a0\f8\e9\1933dbb3447ea6ef57062fd5461cb118deb8c2ed074e8344bf
  Running setup.py bdist_wheel for gast ... done
  Stored in directory: C:\Users\Admin\AppData\Local\pip\Cache\wheels\9a\1f\0e\3cde98113222b853e98fc0a8e9924480a3e25f1b4008cedb4f
  Running setup.py bdist_wheel for termcolor ... done
  Stored in directory: C:\Users\Admin\AppData\Local\pip\Cache\wheels\7c\06\54\bc84598ba1daf8f970247f550b175aaaee85f68b4b0c5ab2c6
Successfully built absl-py gast termcolor
distributed 1.21.8 requires msgpack, which is not installed.
Installing collected packages: protobuf, markdown, tensorboard, grpcio, absl-py, astor, gast, termcolor, tensorflow
Successfully installed absl-py-0.2.2 astor-0.7.1 gast-0.2.0 grpcio-1.13.0 markdown-2.6.11 protobuf-3.6.0 tensorboard-1.9.0 tensorflow-1.9.0 termcolor-1.1.0
 
cs



아나콘다 주피터 노트북을 사용 시 아래와 같이 해당 패키지 라이브러리를 찾을 수 없다는 메세지가 출력될 경우
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-5-825f67b3e58c> in <module>()
      5 password = 'python'
      6 database = 'python'
----> 7 mc = create_engine("mysql+pymysql://" + user + ":" + password + "@192.168.0.21/" + database)
      8 connection = mc.raw_connection()
      9 cursor = connection.cursor()
 
~\Anaconda3\lib\site-packages\sqlalchemy\engine\__init__.py in create_engine(*args, **kwargs)
    422     strategy = kwargs.pop('strategy', default_strategy)
    423     strategy = strategies.strategies[strategy]
--> 424     return strategy.create(*args, **kwargs)
    425 
    426 
 
~\Anaconda3\lib\site-packages\sqlalchemy\engine\strategies.py in create(self, name_or_url, **kwargs)
     79                 if k in kwargs:
     80                     dbapi_args[k] = pop_kwarg(k)
---> 81             dbapi = dialect_cls.dbapi(**dbapi_args)
     82 
     83         dialect_args['dbapi'] = dbapi
 
~\Anaconda3\lib\site-packages\sqlalchemy\dialects\mysql\pymysql.py in dbapi(cls)
     60     @classmethod
     61     def dbapi(cls):
---> 62         return __import__('pymysql')
     63 
     64     if py3k:
 
ModuleNotFoundError: No module named 'pymysql'
 
 
cs

아나콘다 프롬프트를 실행시킨 후 다음과 같이 해당 모듈을 찾아서 설치를 진행합니다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
(base) C:\Users\Admin>conda install -c anaconda pymysql
Solving environment: done
 
## Package Plan ##
 
  environment location: C:\Users\Admin\Anaconda3
 
  added / updated specs:
    - pymysql
 
 
The following packages will be downloaded:
 
    package                    |            build
    ---------------------------|-----------------
    pymysql-0.9.1              |           py36_0         139 KB  anaconda
 
The following NEW packages will be INSTALLED:
 
    pymysql: 0.9.1-py36_0 anaconda
 
Proceed ([y]/n)? y
 
 
Downloading and Extracting Packages
pymysql-0.9.1        |  139 KB | ############################################################################## | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
 
(base) C:\Users\Admin>
 
cs


'Tools > Anaconda' 카테고리의 다른 글

tensorflow 설치  (0) 2018.07.19
[에러] ModuleNotFoundError: No module named 'bcolz'  (0) 2018.07.02


아나콘다 주피터 노트북을 사용 시 아래와 같이 해당 패키지 라이브러리를 찾을 수 없다는 메세지가 출력될 경우

1
2
3
4
5
6
7
8
9
10
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-a4dce0c7ec11> in <module>()
      1 import dask.array as da
----> 2 import bcolz as bc
      3 import numpy as np
      4 import dask
      5 
 
ModuleNotFoundError: No module named 'bcolz'
 
cs


아나콘다 프롬프트를 실행시킨 후 다음과 같이 해당 모듈을 찾아서 설치를 진행합니다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
(base) C:\Users\Admin>conda install -c anaconda bcolz
Solving environment: done
 
## Package Plan ##
 
  environment location: C:\Users\Admin\Anaconda3
 
  added / updated specs:
    - bcolz
 
 
The following packages will be downloaded:
 
    package                    |            build
    ---------------------------|-----------------
    bcolz-1.2.1                |   py36h830ac7b_0         516 KB  anaconda
    openssl-1.0.2o             |       h8ea7d77_0         5.4 MB  anaconda
    certifi-2018.4.16          |           py36_0         143 KB  anaconda
    conda-4.5.4                |           py36_0         1.0 MB  anaconda
    ca-certificates-2018.03.07 |                0         155 KB  anaconda
    ------------------------------------------------------------
                                           Total:         7.2 MB
 
The following NEW packages will be INSTALLED:
 
    bcolz:           1.2.1-py36h830ac7b_0 anaconda
 
The following packages will be UPDATED:
 
    ca-certificates: 2018.03.07-0                  --> 2018.03.07-0      anaconda
    certifi:         2018.4.16-py36_0              --> 2018.4.16-py36_0  anaconda
    conda:           4.5.4-py36_0                  --> 4.5.4-py36_0      anaconda
    openssl:         1.0.2o-h8ea7d77_0             --> 1.0.2o-h8ea7d77_0 anaconda
 
Proceed ([y]/n)? y
 
 
Downloading and Extracting Packages
bcolz-1.2.1          |  516 KB | ############################################################################## | 100%
openssl-1.0.2o       |  5.4 MB | ############################################################################## | 100%
certifi-2018.4.16    |  143 KB | ############################################################################## | 100%
conda-4.5.4          |  1.0 MB | ############################################################################## | 100%
ca-certificates-2018 |  155 KB | ############################################################################## | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
 
(base) C:\Users\Admin>
 
cs


'Tools > Anaconda' 카테고리의 다른 글

tensorflow 설치  (0) 2018.07.19
[에러] ModuleNotFoundError: No module named 'pymysql'  (4) 2018.07.03

+ Recent posts