at first I try to install Anaconda3, it seems i can only creater a new folder named Anaconda 3 in C:/, because space in the directory is not allowed.
remember to change the environment path of the Anaconda!
as in tutorials how to ‘Create a conda environment named tensorflow by invoking the following command’?
!!!should reset environment path!!! ask my friend
i have to reinstall the anaconda3 because i have not find any way to add the environment path
another problem happens, when i want to conda or pip python 3.5
reference [# How to make Anaconda work behind HTTP proxy (not https)
conda cause HTTP ERROR, but conda –proxy doesn’t work
C:\!Users\AHVisualServoing\09_Tensorflow>conda create -n tensorflow pip python 3.5
Solving environment: failed CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.continuum.io/pkgs/msys2/win-64/repodata.json.bz2> Elapsed: -
Michael told me to add
--proxy [http://youruser:password@rb-proxy-de.bosch.com:8080]
–failed!
ZhongYu told me to upgrade pip
–failed!
c:\>conda config --set use_pip True
c:\>pip --proxy [http://wle7rng:Wlc58733511@rb-proxy-de.bosch.com:8080]
then add
proxy_servers:
http: http://wle7rng:Wlc58733511@rb-proxy-de.bosch.com:8080
https: http://wle7rng:Wlc58733511@rb-proxy-de.bosch.com:8080
into the .condarc
and then Error:
LoadError: Load Error: in C:\Users\WLE7RNG\.condarc on line 7, column 0. Invalid YAML
change TAB into space
and it works!!!!!!!!!
but!
Could not find a version that satisfies the requirement tensorflow (from versions:)
No matching distribution found for tensorflow
because at first coding wrong
conda create -n tensorflow #change into conda create -n tensorflowpip python=3.5
and then !
Exception:
Traceback (most recent call last):
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\_vendor\urllib3\connection.py", line 141, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\_vendor\urllib3\util\connection.py", line 60, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "C:\Anaconda3\envs\tensorflow\lib\socket.py", line 733, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11001] getaddrinfo failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\_vendor\urllib3\connectionpool.py", line 601, in urlopen
chunked=chunked)
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\_vendor\urllib3\connectionpool.py", line 346, in _make_request
self._validate_conn(conn)
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\_vendor\urllib3\connectionpool.py", line 850, in _validate_conn
conn.connect()
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\_vendor\urllib3\connection.py", line 284, in connect
conn = self._new_conn()
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\_vendor\urllib3\connection.py", line 150, in _new_conn
self, "Failed to establish a new connection: %s" % e)
pip._vendor.urllib3.exceptions.NewConnectionError: <pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000002195A65ED68>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\_vendor\requests\adapters.py", line 440, in send
timeout=timeout
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\_vendor\urllib3\connectionpool.py", line 668, in urlopen
**response_kw)
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\_vendor\urllib3\connectionpool.py", line 668, in urlopen
**response_kw)
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\_vendor\urllib3\connectionpool.py", line 668, in urlopen
**response_kw)
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\_vendor\urllib3\connectionpool.py", line 668, in urlopen
**response_kw)
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\_vendor\urllib3\connectionpool.py", line 668, in urlopen
**response_kw)
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\_vendor\urllib3\connectionpool.py", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\_vendor\urllib3\util\retry.py", line 388, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
pip._vendor.urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='storage.googleapis.com', port=443): Max retries exceeded with url: /tensuhttps://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.1.0-cp35-cp35m-win_amd64.whl (Caused by NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000002195A65ED68>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\commands\install.py", line 335, in run
wb.build(autobuilding=True)
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\wheel.py", line 756, in build
self.requirement_set.prepare_files(self.finder)
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\req\req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\req\req_set.py", line 620, in _prepare_file
session=self.session, hashes=hashes)
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\download.py", line 821, in unpack_url
hashes=hashes
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\download.py", line 659, in unpack_http_url
hashes)
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\download.py", line 853, in _download_http_url
stream=True,
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\_vendor\requests\sessions.py", line 521, in get
return self.request('GET', url, **kwargs)
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\download.py", line 386, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\_vendor\requests\sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\_vendor\requests\sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\_vendor\cachecontrol\adapter.py", line 50, in send
resp = super(CacheControlAdapter, self).send(request, **kw)
File "C:\Anaconda3\envs\tensorflow\lib\site-packages\pip\_vendor\requests\adapters.py", line 508, in send
raise ConnectionError(e, request=request)
pip._vendor.requests.exceptions.ConnectionError: HTTPSConnectionPool(host='storage.googleapis.com', port=443): Max retries exceeded with url: /tensuhttps://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.1.0-cp35-cp35m-win_amd64.whl (Caused by NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000002195A65ED68>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))
somehow, i do
c:\>pip install --upgrade pip
and then
c:\>pip install --upgrade tensorflow
and finally it finished!!!!!