Unity2019官网项目机器学习01

564 阅读10分钟

安装Anaconda并创建环境

点击Products选项选择Individual Editon 下拉到尾部,选择版本下载 不要放在C盘,此文件需要3G大小的盘 进入等待阶段 Next Next 安装成功之后,打开 等待一会儿 ok 环境 默认只有一个base 新建环境工作

  • py选择3.6版本以上 等待配置成功

安装mlagents

切换环境(base) C:\Users\Administrator>activate unity_py_38_work

9点56分时安装mlagents(unity_py_38_work) C:\Users\Administrator>pip install mlagents 等待下载,此时下载速度很慢,太慢了等不及了。。。 Ctrl+C退出此次安装

  • 使用国内镜像 pypi 镜像使用帮助

pypi 镜像每 5 分钟同步一次。 pip install mlagents -i pypi.tuna.tsinghua.edu.cn/simple some-package

提示有错误哎! pip可能不支持断点续传。后来我按照cmd命令行里提示的下载地址,自己用浏览器下载,然后本地安装whl文件,成功。 判断原因,应该使用版本太高,暂不支持

怎么解决呀? 错误:2020年10月以后,您在安装或更新软件包时可能会遇到错误。这是因为pip将改变它解决依赖冲突的方式。 我们建议您使用——use-feature=2020-resolver在新的解析器成为默认值之前用它来测试包。 tensorflow 2.3.0要求numpy<1.19.0,>=1.16.0,但是你会得到numpy 1.19.2,这是不兼容的。 mlagents-envs 0.19.0要求numpy<1.19.0,>=1.14.1,但是您会得到不兼容的numpy 1.19.2。

找到一个方法哎!

使用豆瓣的镜像源,设置兼容2020 pip install mlagents -i https://pypi.douban.com/simple --use-feature=2020-resolver

以下是我的操作代码

(base) C:\Users\Administrator>activate ml-agents

(ml-agents) C:\Users\Administrator>pip install mlagents -i https://pypi.mirrors.ustc.edu.cn/simple/
Looking in indexes: https://pypi.mirrors.ustc.edu.cn/simple/
Collecting mlagents
  Downloading https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/24/ae/d3386a85bdb96b0086839fa7bf4e713104dfa5e89eeeb1103b4f86b1d56d/mlagents-0.19.0-py3-none-any.whl (141 kB)
     |████████████████████████████████| 141 kB 819 kB/s
Collecting mlagents-envs==0.19.0
  Downloading https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/39/72/9cc1ef48230b19956f26e5700b20175e39efd040b0c9747da13e15cc09b4/mlagents_envs-0.19.0-py3-none-any.whl (68 kB)
     |████████████████████████████████| 68 kB 485 kB/s
Collecting numpy<2.0,>=1.13.3
  Downloading https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/dc/8e/a78d4e4a28adadbf693a9c056a0d5955a906889fa0dc3768b88deb236e22/numpy-1.19.2-cp36-cp36m-win_amd64.whl (12.9 MB)
     |████████████████████████████████| 12.9 MB 819 kB/s
Collecting pypiwin32==223; platform_system == "Windows"
  Downloading https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/d0/1b/2f292bbd742e369a100c91faa0483172cd91a1a422a6692055ac920946c5/pypiwin32-223-py3-none-any.whl (1.7 kB)
Collecting grpcio>=1.11.0
  Downloading https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/2b/55/d5be63ec1f985228d4d27ef8a5d3d2381904c22318a0c046d9a76e312df5/grpcio-1.32.0-cp36-cp36m-win_amd64.whl (2.6 MB)
     |███████████████                 | 1.2 MB 17 kB/s eta 0:01:19ERROR: Exception:
Traceback (most recent call last):
  File "D:\_zqStudent\envs\ml-agents\lib\site-packages\pip\_vendor\urllib3\response.py", line 437, in _error_catcher
    yield
  File "D:\_zqStudent\envs\ml-agents\lib\site-packages\pip\_vendor\urllib3\response.py", line 519, in read
    data = self._fp.read(amt) if not fp_closed else b""
  File "D:\_zqStudent\envs\ml-agents\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 62, in read
    data = self.__fp.read(amt)
  File "D:\_zqStudent\envs\ml-agents\lib\http\client.py", line 463, in read
    n = self.readinto(b)
  File "D:\_zqStudent\envs\ml-agents\lib\http\client.py", line 507, in readinto
    n = self.fp.readinto(b)
  File "D:\_zqStudent\envs\ml-agents\lib\socket.py", line 586, in readinto
    return self._sock.recv_into(b)
  File "D:\_zqStudent\envs\ml-agents\lib\ssl.py", line 1012, in recv_into
    return self.read(nbytes, buffer)
  File "D:\_zqStudent\envs\ml-agents\lib\ssl.py", line 874, in read
    return self._sslobj.read(len, buffer)
  File "D:\_zqStudent\envs\ml-agents\lib\ssl.py", line 631, in read
    v = self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\_zqStudent\envs\ml-agents\lib\site-packages\pip\_internal\cli\base_command.py", line 216, in _main
    status = self.run(options, args)
  File "D:\_zqStudent\envs\ml-agents\lib\site-packages\pip\_internal\cli\req_command.py", line 182, in wrapper
    return func(self, options, args)
  File "D:\_zqStudent\envs\ml-agents\lib\site-packages\pip\_internal\commands\install.py", line 325, in run
    reqs, check_supported_wheels=not options.target_dir
  File "D:\_zqStudent\envs\ml-agents\lib\site-packages\pip\_internal\resolution\legacy\resolver.py", line 183, in resolve
    discovered_reqs.extend(self._resolve_one(requirement_set, req))
  File "D:\_zqStudent\envs\ml-agents\lib\site-packages\pip\_internal\resolution\legacy\resolver.py", line 388, in _resolve_one
    abstract_dist = self._get_abstract_dist_for(req_to_install)
  File "D:\_zqStudent\envs\ml-agents\lib\site-packages\pip\_internal\resolution\legacy\resolver.py", line 340, in _get_abstract_dist_for
    abstract_dist = self.preparer.prepare_linked_requirement(req)
  File "D:\_zqStudent\envs\ml-agents\lib\site-packages\pip\_internal\operations\prepare.py", line 469, in prepare_linked_requirement
    hashes=self._get_linked_req_hashes(req)
  File "D:\_zqStudent\envs\ml-agents\lib\site-packages\pip\_internal\operations\prepare.py", line 259, in unpack_url
    hashes=hashes,
  File "D:\_zqStudent\envs\ml-agents\lib\site-packages\pip\_internal\operations\prepare.py", line 130, in get_http_url
    link, downloader, temp_dir.path, hashes
  File "D:\_zqStudent\envs\ml-agents\lib\site-packages\pip\_internal\operations\prepare.py", line 282, in _download_http_url
    for chunk in download.chunks:
  File "D:\_zqStudent\envs\ml-agents\lib\site-packages\pip\_internal\cli\progress_bars.py", line 168, in iter
    for x in it:
  File "D:\_zqStudent\envs\ml-agents\lib\site-packages\pip\_internal\network\utils.py", line 88, in response_chunks
    decode_content=False,
  File "D:\_zqStudent\envs\ml-agents\lib\site-packages\pip\_vendor\urllib3\response.py", line 576, in stream
    data = self.read(amt=amt, decode_content=decode_content)
  File "D:\_zqStudent\envs\ml-agents\lib\site-packages\pip\_vendor\urllib3\response.py", line 541, in read
    raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
  File "D:\_zqStudent\envs\ml-agents\lib\contextlib.py", line 99, in __exit__
    self.gen.throw(type, value, traceback)
  File "D:\_zqStudent\envs\ml-agents\lib\site-packages\pip\_vendor\urllib3\response.py", line 442, in _error_catcher
    raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='mirrors.tuna.tsinghua.edu.cn', port=443): Read timed out.

(ml-agents) C:\Users\Administrator>pip install mlagents -i https://pypi.douban.com/simple
Looking in indexes: https://pypi.douban.com/simple
Collecting mlagents
  Using cached https://pypi.doubanio.com/packages/24/ae/d3386a85bdb96b0086839fa7bf4e713104dfa5e89eeeb1103b4f86b1d56d/mlagents-0.19.0-py3-none-any.whl (141 kB)
Collecting cattrs>=1.0.0
  Downloading https://pypi.doubanio.com/packages/17/5b/6afbdaeb066ecf8ca28d85851048103ac80bb169491a54a14bd39823c422/cattrs-1.0.0-py2.py3-none-any.whl (14 kB)
Requirement already satisfied: six>=1.12.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (1.15.0)
Collecting grpcio>=1.11.0
  Downloading https://pypi.doubanio.com/packages/2b/55/d5be63ec1f985228d4d27ef8a5d3d2381904c22318a0c046d9a76e312df5/grpcio-1.32.0-cp36-cp36m-win_amd64.whl (2.6 MB)
     |████████████████████████████████| 2.6 MB 3.3 MB/s
Collecting pypiwin32==223; platform_system == "Windows"
  Using cached https://pypi.doubanio.com/packages/d0/1b/2f292bbd742e369a100c91faa0483172cd91a1a422a6692055ac920946c5/pypiwin32-223-py3-none-any.whl (1.7 kB)
Collecting h5py>=2.9.0
  Downloading https://pypi.doubanio.com/packages/0b/fa/bee65d2dbdbd3611702aafd128139c53c90a1285f169ba5467aab252e27a/h5py-2.10.0-cp36-cp36m-win_amd64.whl (2.4 MB)
     |████████████████████████████████| 2.4 MB ...
Collecting tensorflow<3.0,>=1.7
  Downloading https://pypi.doubanio.com/packages/8b/5d/b6ecf195081353e5dfbe71c628592cbc8b8eb5b9202bc35228fc6d2b702d/tensorflow-2.3.0-cp36-cp36m-win_amd64.whl (342.5 MB)
     |████████████████████████████████| 342.5 MB 4.9 kB/s
Collecting mlagents-envs==0.19.0
  Using cached https://pypi.doubanio.com/packages/39/72/9cc1ef48230b19956f26e5700b20175e39efd040b0c9747da13e15cc09b4/mlagents_envs-0.19.0-py3-none-any.whl (68 kB)
Collecting pyyaml>=3.1.0
  Downloading https://pypi.doubanio.com/packages/61/5e/0386f8d74ce6e0a183b93a7e02d32b2629c0a2c8e9db806a3f5eebbfa221/PyYAML-5.3.1-cp36-cp36m-win_amd64.whl (215 kB)
     |████████████████████████████████| 215 kB ...
Collecting numpy<2.0,>=1.13.3
  Downloading https://pypi.doubanio.com/packages/dc/8e/a78d4e4a28adadbf693a9c056a0d5955a906889fa0dc3768b88deb236e22/numpy-1.19.2-cp36-cp36m-win_amd64.whl (12.9 MB)
     |████████████████████████████████| 12.9 MB 6.4 MB/s
Collecting Pillow>=4.2.1
  Downloading https://pypi.doubanio.com/packages/f0/03/bec597cb6cc3cab8e3d684c6167c3beafae753f2ed6753af6f072a0714c1/Pillow-7.2.0-cp36-cp36m-win_amd64.whl (2.0 MB)
     |████████████████████████████████| 2.0 MB ...
Collecting attrs>=19.3.0
  Downloading https://pypi.doubanio.com/packages/14/df/479736ae1ef59842f512548bacefad1abed705e400212acba43f9b0fa556/attrs-20.2.0-py2.py3-none-any.whl (48 kB)
     |████████████████████████████████| 48 kB ...
Collecting protobuf>=3.6
  Downloading https://pypi.doubanio.com/packages/f6/fe/9d8e70a86add02cb1ef35540ec03fd5b210d76323fe4645d7121b13ae33e/protobuf-3.13.0-cp36-cp36m-win_amd64.whl (1.1 MB)
     |████████████████████████████████| 1.1 MB 6.4 MB/s
Collecting pywin32>=223
  Downloading https://pypi.doubanio.com/packages/e7/8a/8458687e4f1a7978bd59f8fd0bc4e6c56cf640c551877ca9a3e35239ae5b/pywin32-228-cp36-cp36m-win_amd64.whl (9.1 MB)
     |████████████████████████████████| 9.1 MB 6.8 MB/s
Collecting tensorflow-estimator<2.4.0,>=2.3.0
  Downloading https://pypi.doubanio.com/packages/e9/ed/5853ec0ae380cba4588eab1524e18ece1583b65f7ae0e97321f5ff9dfd60/tensorflow_estimator-2.3.0-py2.py3-none-any.whl (459 kB)
     |████████████████████████████████| 459 kB ...
Collecting astunparse==1.6.3
  Downloading https://pypi.doubanio.com/packages/2b/03/13dde6512ad7b4557eb792fbcf0c653af6076b81e5941d36ec61f7ce6028/astunparse-1.6.3-py2.py3-none-any.whl (12 kB)
Collecting opt-einsum>=2.3.2
  Downloading https://pypi.doubanio.com/packages/bc/19/404708a7e54ad2798907210462fd950c3442ea51acc8790f3da48d2bee8b/opt_einsum-3.3.0-py3-none-any.whl (65 kB)
     |████████████████████████████████| 65 kB ...
Requirement already satisfied: wheel>=0.26 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from tensorflow<3.0,>=1.7->mlagents) (0.35.1)
Collecting google-pasta>=0.1.8
  Downloading https://pypi.doubanio.com/packages/a3/de/c648ef6835192e6e2cc03f40b19eeda4382c49b5bafb43d88b931c4c74ac/google_pasta-0.2.0-py3-none-any.whl (57 kB)
     |████████████████████████████████| 57 kB 4.1 MB/s
Collecting wrapt>=1.11.1
  Downloading https://pypi.doubanio.com/packages/82/f7/e43cefbe88c5fd371f4cf0cf5eb3feccd07515af9fd6cf7dbf1d1793a797/wrapt-1.12.1.tar.gz (27 kB)
Collecting gast==0.3.3
  Downloading https://pypi.doubanio.com/packages/d6/84/759f5dd23fec8ba71952d97bcc7e2c9d7d63bdc582421f3cd4be845f0c98/gast-0.3.3-py2.py3-none-any.whl (9.7 kB)
Collecting termcolor>=1.1.0
  Using cached https://pypi.doubanio.com/packages/8a/48/a76be51647d0eb9f10e2a4511bf3ffb8cc1e6b14e9e4fab46173aa79f981/termcolor-1.1.0.tar.gz (3.9 kB)
Collecting tensorboard<3,>=2.3.0
  Downloading https://pypi.doubanio.com/packages/e9/1b/6a420d7e6ba431cf3d51b2a5bfa06a958c4141e3189385963dc7f6fbffb6/tensorboard-2.3.0-py3-none-any.whl (6.8 MB)
     |████████████████████████████████| 6.8 MB ...
Collecting scipy==1.4.1
  Downloading https://pypi.doubanio.com/packages/8d/2f/fcb6150813b89d628749784370132e431f687ebab5a1063eb298cc941f76/scipy-1.4.1-cp36-cp36m-win_amd64.whl (30.8 MB)
     |████████████████████████████████| 30.8 MB 6.8 MB/s
Collecting keras-preprocessing<1.2,>=1.1.1
  Downloading https://pypi.doubanio.com/packages/79/4c/7c3275a01e12ef9368a892926ab932b33bb13d55794881e3573482b378a7/Keras_Preprocessing-1.1.2-py2.py3-none-any.whl (42 kB)
     |████████████████████████████████| 42 kB ...
Collecting absl-py>=0.7.0
  Downloading https://pypi.doubanio.com/packages/b9/07/f69dd3367368ad69f174bfe426a973651412ec11d48ec05c000f19fe0561/absl_py-0.10.0-py3-none-any.whl (127 kB)
     |████████████████████████████████| 127 kB 6.4 MB/s
Collecting cloudpickle
  Downloading https://pypi.doubanio.com/packages/e7/e3/898487e5dbeb612054cf2e0c188463acb358167fef749c53c8bb8918cea1/cloudpickle-1.6.0-py3-none-any.whl (23 kB)
Requirement already satisfied: setuptools in d:\_zqstudent\envs\ml-agents\lib\site-packages (from protobuf>=3.6->mlagents) (49.6.0.post20200814)
Collecting google-auth<2,>=1.6.3
  Downloading https://pypi.doubanio.com/packages/6c/37/a21382309d6cd433d6f002a683bc4f2e27ad912af11d4c4a7bdd6e8d363d/google_auth-1.21.1-py2.py3-none-any.whl (93 kB)
     |████████████████████████████████| 93 kB 580 kB/s
Collecting google-auth-oauthlib<0.5,>=0.4.1
  Downloading https://pypi.doubanio.com/packages/7b/b8/88def36e74bee9fce511c9519571f4e485e890093ab7442284f4ffaef60b/google_auth_oauthlib-0.4.1-py2.py3-none-any.whl (18 kB)
Collecting werkzeug>=0.11.15
  Downloading https://pypi.doubanio.com/packages/cc/94/5f7079a0e00bd6863ef8f1da638721e9da21e5bacee597595b318f71d62e/Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB)
     |████████████████████████████████| 298 kB 6.4 MB/s
Collecting markdown>=2.6.8
  Downloading https://pypi.doubanio.com/packages/a4/63/eaec2bd025ab48c754b55e8819af0f6a69e2b1e187611dd40cbbe101ee7f/Markdown-3.2.2-py3-none-any.whl (88 kB)
     |████████████████████████████████| 88 kB 2.4 MB/s
Collecting requests<3,>=2.21.0
  Downloading https://pypi.doubanio.com/packages/45/1e/0c169c6a5381e241ba7404532c16a21d86ab872c9bed8bdcd4c423954103/requests-2.24.0-py2.py3-none-any.whl (61 kB)
     |████████████████████████████████| 61 kB 4.8 MB/s
Collecting tensorboard-plugin-wit>=1.6.0
  Downloading https://pypi.doubanio.com/packages/b6/85/5c5ac0a8c5efdfab916e9c6bc18963f6a6996a8a1e19ec4ad8c9ac9c623c/tensorboard_plugin_wit-1.7.0-py3-none-any.whl (779 kB)
     |████████████████████████████████| 779 kB 2.2 MB/s
Collecting cachetools<5.0,>=2.0.0
  Downloading https://pypi.doubanio.com/packages/cd/5c/f3aa86b6d5482f3051b433c7616668a9b96fbe49a622210e2c9781938a5c/cachetools-4.1.1-py3-none-any.whl (10 kB)
Collecting pyasn1-modules>=0.2.1
  Downloading https://pypi.doubanio.com/packages/95/de/214830a981892a3e286c3794f41ae67a4495df1108c3da8a9f62159b9a9d/pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
     |████████████████████████████████| 155 kB ...
Collecting rsa<5,>=3.1.4; python_version >= "3.5"
  Downloading https://pypi.doubanio.com/packages/1c/df/c3587a667d6b308fadc90b99e8bc8774788d033efcc70f4ecaae7fad144b/rsa-4.6-py3-none-any.whl (47 kB)
     |████████████████████████████████| 47 kB 3.2 MB/s
Collecting requests-oauthlib>=0.7.0
  Downloading https://pypi.doubanio.com/packages/a3/12/b92740d845ab62ea4edf04d2f4164d82532b5a0b03836d4d4e71c6f3d379/requests_oauthlib-1.3.0-py2.py3-none-any.whl (23 kB)
Collecting importlib-metadata; python_version < "3.8"
  Downloading https://pypi.doubanio.com/packages/8e/58/cdea07eb51fc2b906db0968a94700866fc46249bdc75cac23f9d13168929/importlib_metadata-1.7.0-py2.py3-none-any.whl (31 kB)
Collecting chardet<4,>=3.0.2
  Downloading https://pypi.doubanio.com/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133 kB)
     |████████████████████████████████| 133 kB 6.8 MB/s
Collecting idna<3,>=2.5
  Downloading https://pypi.doubanio.com/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl (58 kB)
     |████████████████████████████████| 58 kB ...
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
  Downloading https://pypi.doubanio.com/packages/9f/f0/a391d1463ebb1b233795cabfc0ef38d3db4442339de68f847026199e69d7/urllib3-1.25.10-py2.py3-none-any.whl (127 kB)
     |████████████████████████████████| 127 kB 6.4 MB/s
Requirement already satisfied: certifi>=2017.4.17 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from requests<3,>=2.21.0->tensorboard<3,>=2.3.0->tensorflow<3.0,>=1.7->mlagents) (2020.6.20)
Collecting pyasn1<0.5.0,>=0.4.6
  Downloading https://pypi.doubanio.com/packages/62/1e/a94a8d635fa3ce4cfc7f506003548d0a2447ae76fd5ca53932970fe3053f/pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
     |████████████████████████████████| 77 kB 5.5 MB/s
Collecting oauthlib>=3.0.0
  Downloading https://pypi.doubanio.com/packages/05/57/ce2e7a8fa7c0afb54a0581b14a65b56e62b5759dbc98e80627142b8a3704/oauthlib-3.1.0-py2.py3-none-any.whl (147 kB)
     |████████████████████████████████| 147 kB 1.6 MB/s
Collecting zipp>=0.5
  Downloading https://pypi.doubanio.com/packages/b2/34/bfcb43cc0ba81f527bc4f40ef41ba2ff4080e047acb0586b56b3d017ace4/zipp-3.1.0-py3-none-any.whl (4.9 kB)
Building wheels for collected packages: wrapt, termcolor
  Building wheel for wrapt (setup.py) ... done
  Created wheel for wrapt: filename=wrapt-1.12.1-py3-none-any.whl size=19558 sha256=3ed2cf182d440c4ab0af7c4480a0abf355d9f7507a452e9795925ab11ed863b5
  Stored in directory: c:\users\administrator\appdata\local\pip\cache\wheels\e8\23\9f\6eff3bd0915319c87bebaa713871351f4a3b6eeb52360207ee
  Building wheel for termcolor (setup.py) ... done
  Created wheel for termcolor: filename=termcolor-1.1.0-py3-none-any.whl size=4835 sha256=ee355b2ae882262efc6c64d0044b72f95f76c680ab17d0098550fd87abd6cf6d
  Stored in directory: c:\users\administrator\appdata\local\pip\cache\wheels\45\b0\6f\4e4016a1b8427541302652665fb7cfd1cde24f5b9dca60b3be
Successfully built wrapt termcolor
Installing collected packages: attrs, cattrs, grpcio, pywin32, pypiwin32, numpy, h5py, tensorflow-estimator, astunparse, opt-einsum, google-pasta, protobuf, wrapt, gast, termcolor, cachetools, pyasn1, pyasn1-modules, rsa, google-auth, oauthlib, chardet, idna, urllib3, requests, requests-oauthlib, google-auth-oauthlib, werkzeug, zipp, importlib-metadata, markdown, tensorboard-plugin-wit, absl-py, tensorboard, scipy, keras-preprocessing, tensorflow, cloudpickle, pyyaml, Pillow, mlagents-envs, mlagents
ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.

We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.

tensorflow 2.3.0 requires numpy<1.19.0,>=1.16.0, but you'll have numpy 1.19.2 which is incompatible.
mlagents-envs 0.19.0 requires numpy<1.19.0,>=1.14.1, but you'll have numpy 1.19.2 which is incompatible.
Successfully installed Pillow-7.2.0 absl-py-0.10.0 astunparse-1.6.3 attrs-20.2.0 cachetools-4.1.1 cattrs-1.0.0 chardet-3.0.4 cloudpickle-1.6.0 gast-0.3.3 google-auth-1.21.1 google-auth-oauthlib-0.4.1 google-pasta-0.2.0 grpcio-1.32.0 h5py-2.10.0 idna-2.10 importlib-metadata-1.7.0 keras-preprocessing-1.1.2 markdown-3.2.2 mlagents-0.19.0 mlagents-envs-0.19.0 numpy-1.19.2 oauthlib-3.1.0 opt-einsum-3.3.0 protobuf-3.13.0 pyasn1-0.4.8 pyasn1-modules-0.2.8 pypiwin32-223 pywin32-228 pyyaml-5.3.1 requests-2.24.0 requests-oauthlib-1.3.0 rsa-4.6 scipy-1.4.1 tensorboard-2.3.0 tensorboard-plugin-wit-1.7.0 tensorflow-2.3.0 tensorflow-estimator-2.3.0 termcolor-1.1.0 urllib3-1.25.10 werkzeug-1.0.1 wrapt-1.12.1 zipp-3.1.0

(ml-agents) C:\Users\Administrator>pip install mlagents -i https://pypi.douban.com/simple --use-feature=2020-resolver
Looking in indexes: https://pypi.douban.com/simple
Requirement already satisfied: mlagents in d:\_zqstudent\envs\ml-agents\lib\site-packages (0.19.0)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.doubanio.com', port=443): Read timed out. (read timeout=15)",)': /simple/mlagents/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.doubanio.com', port=443): Read timed out. (read timeout=15)",)': /simple/mlagents/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.doubanio.com', port=443): Read timed out. (read timeout=15)",)': /simple/mlagents/
Requirement already satisfied: pyyaml>=3.1.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (5.3.1)
Requirement already satisfied: mlagents-envs==0.19.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (0.19.0)
Requirement already satisfied: numpy<2.0,>=1.13.3 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (1.19.2)
Requirement already satisfied: cattrs>=1.0.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (1.0.0)
Requirement already satisfied: attrs>=19.3.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (20.2.0)
Requirement already satisfied: pypiwin32==223 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (223)
Requirement already satisfied: tensorflow<3.0,>=1.7 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (2.3.0)
Requirement already satisfied: grpcio>=1.11.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (1.32.0)
Requirement already satisfied: Pillow>=4.2.1 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (7.2.0)
Requirement already satisfied: six>=1.12.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (1.15.0)
Requirement already satisfied: h5py>=2.9.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (2.10.0)
Requirement already satisfied: protobuf>=3.6 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (3.13.0)
Requirement already satisfied: pyyaml>=3.1.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (5.3.1)
Requirement already satisfied: cloudpickle in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents-envs==0.19.0->mlagents) (1.6.0)
Requirement already satisfied: grpcio>=1.11.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (1.32.0)
Requirement already satisfied: Pillow>=4.2.1 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (7.2.0)
Requirement already satisfied: protobuf>=3.6 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (3.13.0)
Requirement already satisfied: attrs>=19.3.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (20.2.0)
Requirement already satisfied: pywin32>=223 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from pypiwin32==223->mlagents) (228)
Requirement already satisfied: six>=1.12.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (1.15.0)
Requirement already satisfied: six>=1.12.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (1.15.0)
Requirement already satisfied: setuptools in d:\_zqstudent\envs\ml-agents\lib\site-packages (from protobuf>=3.6->mlagents) (49.6.0.post20200814)
Requirement already satisfied: wheel>=0.26 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from tensorflow<3.0,>=1.7->mlagents) (0.35.1)
Requirement already satisfied: gast==0.3.3 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from tensorflow<3.0,>=1.7->mlagents) (0.3.3)
Requirement already satisfied: opt-einsum>=2.3.2 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from tensorflow<3.0,>=1.7->mlagents) (3.3.0)
Requirement already satisfied: wrapt>=1.11.1 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from tensorflow<3.0,>=1.7->mlagents) (1.12.1)
Requirement already satisfied: tensorboard<3,>=2.3.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from tensorflow<3.0,>=1.7->mlagents) (2.3.0)
Requirement already satisfied: scipy==1.4.1 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from tensorflow<3.0,>=1.7->mlagents) (1.4.1)
Requirement already satisfied: absl-py>=0.7.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from tensorflow<3.0,>=1.7->mlagents) (0.10.0)
Requirement already satisfied: google-pasta>=0.1.8 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from tensorflow<3.0,>=1.7->mlagents) (0.2.0)
Requirement already satisfied: six>=1.12.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (1.15.0)
Requirement already satisfied: h5py>=2.9.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (2.10.0)
Requirement already satisfied: termcolor>=1.1.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from tensorflow<3.0,>=1.7->mlagents) (1.1.0)
Requirement already satisfied: tensorflow-estimator<2.4.0,>=2.3.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from tensorflow<3.0,>=1.7->mlagents) (2.3.0)
Requirement already satisfied: astunparse==1.6.3 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from tensorflow<3.0,>=1.7->mlagents) (1.6.3)
Requirement already satisfied: protobuf>=3.6 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (3.13.0)
Requirement already satisfied: keras-preprocessing<1.2,>=1.1.1 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from tensorflow<3.0,>=1.7->mlagents) (1.1.2)
Requirement already satisfied: grpcio>=1.11.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (1.32.0)
Requirement already satisfied: werkzeug>=0.11.15 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from tensorboard<3,>=2.3.0->tensorflow<3.0,>=1.7->mlagents) (1.0.1)
Requirement already satisfied: wheel>=0.26 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from tensorflow<3.0,>=1.7->mlagents) (0.35.1)
Requirement already satisfied: google-auth<2,>=1.6.3 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from tensorboard<3,>=2.3.0->tensorflow<3.0,>=1.7->mlagents) (1.21.1)
Requirement already satisfied: setuptools in d:\_zqstudent\envs\ml-agents\lib\site-packages (from protobuf>=3.6->mlagents) (49.6.0.post20200814)
Requirement already satisfied: six>=1.12.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (1.15.0)
Requirement already satisfied: markdown>=2.6.8 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from tensorboard<3,>=2.3.0->tensorflow<3.0,>=1.7->mlagents) (3.2.2)
Requirement already satisfied: grpcio>=1.11.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (1.32.0)
Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from tensorboard<3,>=2.3.0->tensorflow<3.0,>=1.7->mlagents) (1.7.0)
Requirement already satisfied: requests<3,>=2.21.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from tensorboard<3,>=2.3.0->tensorflow<3.0,>=1.7->mlagents) (2.24.0)
Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from tensorboard<3,>=2.3.0->tensorflow<3.0,>=1.7->mlagents) (0.4.1)
Requirement already satisfied: absl-py>=0.7.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from tensorflow<3.0,>=1.7->mlagents) (0.10.0)
Requirement already satisfied: protobuf>=3.6 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (3.13.0)
Requirement already satisfied: wheel>=0.26 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from tensorflow<3.0,>=1.7->mlagents) (0.35.1)
Requirement already satisfied: six>=1.12.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (1.15.0)
Requirement already satisfied: google-auth<2,>=1.6.3 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from tensorboard<3,>=2.3.0->tensorflow<3.0,>=1.7->mlagents) (1.21.1)
Requirement already satisfied: requests-oauthlib>=0.7.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard<3,>=2.3.0->tensorflow<3.0,>=1.7->mlagents) (1.3.0)
Requirement already satisfied: six>=1.12.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (1.15.0)
Requirement already satisfied: six>=1.12.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (1.15.0)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from requests<3,>=2.21.0->tensorboard<3,>=2.3.0->tensorflow<3.0,>=1.7->mlagents) (1.25.10)
Requirement already satisfied: certifi>=2017.4.17 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from requests<3,>=2.21.0->tensorboard<3,>=2.3.0->tensorflow<3.0,>=1.7->mlagents) (2020.6.20)
Requirement already satisfied: chardet<4,>=3.0.2 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from requests<3,>=2.21.0->tensorboard<3,>=2.3.0->tensorflow<3.0,>=1.7->mlagents) (3.0.4)
Requirement already satisfied: idna<3,>=2.5 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from requests<3,>=2.21.0->tensorboard<3,>=2.3.0->tensorflow<3.0,>=1.7->mlagents) (2.10)
Requirement already satisfied: six>=1.12.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (1.15.0)
Requirement already satisfied: oauthlib>=3.0.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard<3,>=2.3.0->tensorflow<3.0,>=1.7->mlagents) (3.1.0)
Requirement already satisfied: requests<3,>=2.21.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from tensorboard<3,>=2.3.0->tensorflow<3.0,>=1.7->mlagents) (2.24.0)
Requirement already satisfied: six>=1.12.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (1.15.0)
Requirement already satisfied: importlib-metadata in d:\_zqstudent\envs\ml-agents\lib\site-packages (from markdown>=2.6.8->tensorboard<3,>=2.3.0->tensorflow<3.0,>=1.7->mlagents) (1.7.0)
Collecting numpy<2.0,>=1.13.3
  Downloading https://pypi.doubanio.com/packages/dc/18/e69ef84530360c2d39db51acb4cc0012990f27fb1fa7542dac45ad30e7ab/numpy-1.18.5-cp36-cp36m-win_amd64.whl (12.7 MB)
     |████████████████████████████████| 12.7 MB 6.8 MB/s
Requirement already satisfied: pyasn1-modules>=0.2.1 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard<3,>=2.3.0->tensorflow<3.0,>=1.7->mlagents) (0.2.8)
Requirement already satisfied: rsa<5,>=3.1.4 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard<3,>=2.3.0->tensorflow<3.0,>=1.7->mlagents) (4.6)
Requirement already satisfied: setuptools in d:\_zqstudent\envs\ml-agents\lib\site-packages (from protobuf>=3.6->mlagents) (49.6.0.post20200814)
Requirement already satisfied: six>=1.12.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from mlagents) (1.15.0)
Requirement already satisfied: cachetools<5.0,>=2.0.0 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard<3,>=2.3.0->tensorflow<3.0,>=1.7->mlagents) (4.1.1)
Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from pyasn1-modules>=0.2.1->google-auth<2,>=1.6.3->tensorboard<3,>=2.3.0->tensorflow<3.0,>=1.7->mlagents) (0.4.8)
Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from pyasn1-modules>=0.2.1->google-auth<2,>=1.6.3->tensorboard<3,>=2.3.0->tensorflow<3.0,>=1.7->mlagents) (0.4.8)
Requirement already satisfied: zipp>=0.5 in d:\_zqstudent\envs\ml-agents\lib\site-packages (from importlib-metadata->markdown>=2.6.8->tensorboard<3,>=2.3.0->tensorflow<3.0,>=1.7->mlagents) (3.1.0)
Installing collected packages: numpy
  Attempting uninstall: numpy
    Found existing installation: numpy 1.19.2
    Uninstalling numpy-1.19.2:
      Successfully uninstalled numpy-1.19.2
Successfully installed numpy-1.18.5

(ml-agents) C:\Users\Administrator>

具体原因,有大佬讲解就万分感谢了!

检查是否安装成功以及版本log

conda list