Proxy Issues



----Conda Activating Virtual Env-

<CondaPATH>\Scripts>activate py35

Crosscheck .condarc file is not there..or backit up..

Then in the env..set the proxy
(py35) <CondaPATH>>set http_proxy=http://userid:password@proxy.foo.com:8080

Note if password has # replace it with %23 . @ is replaced with %40


---To install a package using conda in Anaconda---------
(py35) <CondaPATH>>conda install -c conda-forge <pkgname>

(py35) <CondaPATH>>conda install -c conda-forge tweepy

---To install a package using pip in Anaconda---------

(py35) <CondaPATH> python -m pip install <pkgName>

(py35) <CondaPATH> python -m pip install vaderSentiment


---------------Common Proxy Errors---------------------------

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/free/noarch/repodata.json.bz2>       Elapsed: -                                                                                                                                                                                                                                      An HTTP error occurred when trying to retrieve this URL.                                                                HTTP errors are often intermittent, and a simple retry will get you on your way.                                                                                                                                                                If your current network has https://www.anaconda.com blocked, please file                                               a support request with your network engineering team.                                                                                                                                                                                           ProxyError(MaxRetryError("HTTPSConnectionPool(host='repo.anaconda.com', port=443): Max retries exceeded with url: /pkgs/free/noarch/repodata.json.bz2 (Caused by ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 403 Forbidden',)))",),)

----------
Ypu may check this if behind corporate network for ssl issue


Windows

 .condarc file at the C:\Users\username folder.

-----------  .condarc file------------
channels:
  - r
  - defaults

show_channel_urls: true
allow_other_channels: true

proxy_servers:
  http: http://INDIA\username:pass@proxy.foo.com:8080
  https: http://INDIA\username:pass@proxy.foo.com:8080

ssl_verify: false


-------------
Windows Command Prompt

set http_proxy=http://userid:Password@proxy.foo.com:8080



---------------Activating Conda Virtual Env in Windows..................

<Anaconda_DIR>\Scripts\activate <envname>

The virtual envs created in Anaconda are in <Anaconda_DIR>\envs  directory


-------------Always crosscheck if .condarc file has updated pwd .....................

------------Without .condarc use below for proxy-----------------------------

Crosscheck .condarc file is not there..or backit up..

Then in the env..set the proxy
(py35) <CondaPATH>>set http_proxy=http://userid:password@proxy.foo.com:8080

Note if password has # replace it with %23 . @ is replaced with %40


Comments

Popular posts from this blog

ScoreCard Model using R

The auxService:mapreduce_shuffle does not exist

Zeppelin and Anaconda