Can not able to install PyInstaller on cloud machine (Persistance VDI) - pip

I am trying to install pyinstaller on my windows (windows 10) machine, I have VDI on cloud, I have installed Anaconda Navigator and inside that installed Python Version 3.6.3.
But when I tried to install the pyinstaller library using Anaconda Prompt and CMD, it is throwing some error regarding "NewConnectionError" and "No matching distribution found for pyinstaller".
I have also tried with .whl file.
pip install <whl-filename>
One of the solution mentioned using Proxy IP (server) able to install, but that solution also won't work.
I have searched on google and tried to find some solution but did not get success, also I've tried with specific version of pyinstaller.
You can see below error report.
pip install pyinstaller
Collecting pyinstaller
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x0000025F6522D860>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',)': /simple/pyinstaller/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x0000025F6522D5F8>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',)': /simple/pyinstaller/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x0000025F6522D7B8>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',)': /simple/pyinstaller/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x0000025F6522D828>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',)': /simple/pyinstaller/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x0000025F6522D470>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',)': /simple/pyinstaller/
Could not find a version that satisfies the requirement pyinstaller (from versions: )
No matching distribution found for pyinstaller
pyinstaller install failed:
keyring install failed:
I thought there is some restriction for package site, but I can able to open "https://pypi.org/project/pyinstaller/" site in browser as well, no any restriction I found.
Same issue while fetching the keyring library.
Extra:
VDI = "Virtual desktop infrastructure" is a technology that refers to the use of virtual machines to provide and manage virtual desktops.
While VDI allows access to a remote desktop on which users can work, VPN establishes a tunnel between the end-user and an organization's private network.

Related

Problem to install something on raspberry pi (vs code) (apt and pip not working)

I have connected to my raspberry pi via vs code. I wanted to install flask, but from this time I have connected to my raspy via vs code, terminal giving me following error: 'WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa140c730>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flask/
I also tried to do the same by restarting my raspi and connect directly with my local machines terminal and pip install flask, but again the same issue. Connection to the internet exists, I can ping for example google with my raspi.
I read in stack overflow something about needed proxy configurations but I never did it before and I am also not using any proxies, what is confusing me. Has somebody an idea how to solve it?

Unable to install mariadb on macOs

I'm trying to install mariadb on macOs Big Sur(version 11.2.3) with m1 chip. Tried the following official link here and here, but when i run the command
brew install mariadb
then after some time it gives me this error
curl: (7) Failed to connect to pkg-containers.githubusercontent.com port 443: Operation timed out
Error: mariadb: Failed to download resource "mecab"
Download failed: https://ghcr.io/v2/homebrew/core/mecab/blobs/sha256:495c42533a5ea5bdedcf4a95c05e613c3579f626b17d0df0396d8a0ea9328bbe
Any help would be appreciated!.
It is a probably a problem with my connection. Please see more details here

Nameserver problems in WSL 2 Ubuntu 20.04

Windows Version: 10 Pro, Version 20H2 (OS Build 19042.1165)
WSL Version: 2
Ubuntu Version: 20.04
I'm working with WSL 2 on my Windows laptop and am trying to install some Python packages (pytest) using pip. Specifically, I create an Anaconda environment with Python=3.7 and try to install the package within that environment. However, the command hangs for a while and then I get this warning:
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f608eadaf90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pytest/
The same thing repeats until I press Ctrl-C. I originally had WSL version 1 installed and upgraded to WSL version 2. When I was using WSL version 1, I didn't have this problem. When I searched online, it seems several people have had similar (but slightly different in terms of the actual exception) problems, but I have not come across a solution that works for me.
I also found out that this is not just limited to pip. I'm unable to clone gitlab (from work) repositories as well. It results in a fatal error of not able to find the repository. I found a potential fix from here. It says to add a nameserver to my /etc/resolv.conf. This is my current /etc/resolv.conf:
nameserver 1.1.1.1
I manually added the last line. As indicated in the file, I created /etc/wsl.conf in order to stop this file automatically regnerate:
[network]
generateResolvConf = false
This works, howver, it takes a while for the command I issue to get going (git clone, pip etc).
I don't really understand what the issue is and why adding nameserver 1.1.1.1 solves it or why its being slow. Is there a fix for this?
Thanks.
I used VM Ware Player having the same problems with frequent failures to name resolution and upgrading to WM Player V17 fixed is today.
I ended up solving this by just adding nameserver 1.1.1.1 to my /etc/resolv.conf as suggested here. While it works and installs what its supposed to, it just takes a long time to begin downloading.

Facing issues while installing Tensorflow behind a proxy

I am currently using Python (Version: 3.5.2 |Anaconda 4.2.0 (64-bit)|). While i am trying to install tensorflow , it is throwing an error. I don't understand how to solve. Below is the error:
Collecting tensorflow
Cache entry deserialization failed, entry ignored
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after
connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel
connection failed: 407 Proxy Authentication Required',))':
/simple/tensorflow/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after
connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel
connection failed: 407 Proxy Authentication Required',))':
/simple/tensorflow/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after
connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel
connection failed: 407 Proxy Authentication Required',))':
/simple/tensorflow/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after
connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel
connection failed: 407 Proxy Authentication Required',))':
/simple/tensorflow/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after
connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel
connection failed: 407 Proxy Authentication Required',))':
/simple/tensorflow/
Could not find a version that satisfies the requirement tensorflow (from
versions: )
No matching distribution found for tensorflow
Cache entry deserialization failed, entry ignored
I don't have any internet connection problem. Could anyone please help me regarding this.
To install tensorflow behind a proxy follow the below steps
Step 1: Setting environment variables
HTTP_PROXY = http://user:password#proxy:portnumber
HTTPS_PROXY = https://user:password#proxy:portnumber
Step 2: Setting proxy servers in .condarc file.
In ".condarc" file which will be in /Users/username/.condarc, add the below lines
proxy_servers:
http: http://user:password#proxy:portnumber
https: https://user:password#proxy:portnumber
Step 3: Install through Anaconda (conda prompt)
Method 1:
Open conda prompt, create new environment for installation through the below commands
conda create -n tensorflow
activate tensorflow
conda install jupyter
conda install scipy
conda install tensorflow
Method 2:
Download the below listed files:
tensorflow jar with name win-64/tensorflow-1.3.0-py36_0.tar.bz2 from link
protobuf jar with name win-64/protobuf-3.2.0-py36_0.tar.bz2 from link
repodata.json.bz2 from link
Now in conda prompt, move to the downloaded directory and give these commands
conda install tensorflow-1.3.0-py36_0.tar.bz2
conda install protobuf-3.2.0-py36_0.tar.bz2
Now you are all set either by method 1 or method 2.
To check the installation from conda prompt itself, give these commands
python ####this will open python workspace from conda
import tensorflow as tf ####if running this didnt gave any error u r all set
NOTE:
If any of the conda commands didn't work(as you are under proxy), give these commands:
conda config --set ssl_verify no
set NO_PROXY=continuum.io,anaconda.org
Hope this helps :)

Using proxy in non-browser applications

My college uses a proxy server to provide internet. I am able to access internet on the browser very well and apps like Skype are automatically connected when I login into my browser.
But some apps show error in connecting.
In Windows Store (of Windows10) I am able to open the store but while downloading it shows an error code of 0x800704CF.
Also I am not able to access the internet in the terminal of my virtual machine - Ubuntu 16.04.2 LTS (I am able to access it in its browser). I get following errors:
While trying
sudo apt-get update
I get the error
Err:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Cannot initiate the connection to us.archive.ubuntu.com:80
(2001:67c:1562::19). - connect (101: Network is unreachable) [IP:
2001:67c:1562::19 80]
And while trying
python get-pip.py
(after downloading get-pip.py)(to install pip)
I get the error:
Retrying (Retry(total=4, connect=None, read=None, redirect=None))
after connection broken by
'NewConnectionErro ('<pip._vendor.requests.packages.urllib3.connection.VerifiedH
TTPS Connection object at 0x7f7451ef1f10>: Failed to establish a new
connection: [Errno 101] Network is unreachable',)': /simple/pip/
I have tried to apply the proxy settings on terminal (in Linux) as:
export http_proxy={proxy IP they provided}
but it did not work.
For apt you have to provide Configuration
proxy conf for apt
For pip you can use command line arguments
pip install --proxy user:password#proxyserver:port <package>

Resources