I tried to use pydap.client to access netcdf data from thredds server on a windows PC. I installed pydap using conda conda install -c conda-forge pydap=3.2.0.
When I run the code
from pydap.client import open_url
I get the following error message
pkg_resources.DistributionNotFound: The 'gunicorn' distribution was not found and is required by the application
I tried to install gunicorn, However, gunicorn is not available for Windows.
Can't I use pydap.client in Windows?
Related
I'm working on MobaXterm and need a python library (prefect) requiring psutil. When I run pip3 install psutil I get the following error : platform cygwin is not supported
Then pip loops on older verisons of psutil repeating the same errors again.
How can install psutil on MobaXterm ?
I can't consider installing Linux on my computer for now, although an alternative to MobaXterm could if it's the only solution.
You can try installing Linux subsystem for windows: https://learn.microsoft.com/en-us/windows/wsl/install
You can use it as a replacemento to connect to remote machine ( that is what I guess you are using MobaXTerm ) and having a working linux environment.
I am getting an error when trying to run pip through Spyder 5.0.3
I have recently installed Spyder 5.0.3 on my machine from https://www.spyder-ide.org/
When I attempt to exectute "pip --version" on IPython in Spyder I get the following error message:
Note: you may need to restart the kernel to use updated packages.
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
How do I fix this so I can run pip in IPython Spyder?
The standalone installer for Windows available in the Spyder website doesn't have pip in it. If you want to use or install a specific package outside of the ones that are shipped with the standalone installer you will need to go with the modular approach to use Spyder (create an environment and select his python executable as the interpreter that Spyder will use).
For that you will need to:
Install a python distribution as for example miniforge: https://github.com/conda-forge/miniforge/tree/4.10.1-3#download
Create a new python environment, install spyder-kernels and the packages you want to use in it.
Set the Spyder interpreter preference to point to the environment created.
The Spyder GitHub wiki has a page that explains the process to setup some of this elements: https://github.com/spyder-ide/spyder/wiki/Working-with-packages-and-environments-in-Spyder#the-modular-approach
I created virtual environment for python 3.4 version.I cant able to use pip from my network. I cant able to download files even. So i created virtual environment and started to install packages using conda install.
When i was using this command conda install -c syllabs_admin justext, i'm getting notification from my server like:
The following packages will be SUPERSEDED by a higher-priority channel:
python pkgs/free::python-3.4.5-0 --> pkgs/main::python-2.7.17-h9bab390_0
Can someone actually help me how to install this justext package for my python version 3.4 using conda install?
Unfortunately, no. There is no way that you can use conda install with any public channel to install justext and your python version. Checking the search function on anaconda.org, there are only two channels that provide justext:
moustik / justext 2.2.0
syllabs_admin / justext 2.2.0
Unfortunately, both have only python 2.7 packaged versions of the module.
you should try to fix your networking issues instead. It sounds really werid that conda install would be working while you claim to not be able to even download any files. Please talk to your IT department or Sys Admin about it or ask another question posting the errors you are getting when using pip install or wget https://files.pythonhosted.org/packages/6c/5f/c7b909b4b864ebcacfac23ce2f6f01a50c53628787cc14b3c06f79464cab/jusText-2.2.0-py2.py3-none-any.whl
all I want is install pandas comfortably the package pandas via pip.
Inside python I get the following error message:
>>> pip install pandas
c:\python34\python.exe: No module named pip.__main__; 'pip' is a package and cannot be directly executed
Allright then I use the windows powershell
PS C:\Windows\system32> C:\Python34\python.exe -m pip install pandas
C:\Python34\python.exe: No module named pip
I had uninstalled and reinstalled python because I used at first the 32-Bit version but wanted 64-Bit, but had some issues so switched back to the 32-Bit version.
Before the reinstallation process I remember, that I could get pip to work but due to proxy issues didn't get very far. I am not a hundred percent positive but I might have gotten around the proxy issue at least.
Don't know what to do. Can somebody help.
thanks
Gerrit
I am trying to install psycopg2 under Windows (Windows 7, 64 bit). I am using Python 2.7.2 from Python(x,y) and PostgreSQL 9.2.1 .
My first try was using the windows port that is downloadable from http://www.stickpeople.com/projects/python/win-psycopg/ (psycopg2-2.4.5.win-amd64-py2.7-pg9.1.3-release.exe). I get a message then that
Python 2.7 required but was not found in the registry
In the next dialogue it does not allow me to choose any python installations. All other programs and installations find my python happily.
This being failed, I tried to use the source package directly from http://pypi.python.org/pypi/psycopg2 but after trying:
python setup.py install
I am now stuck with the error message:
error: Unable to find vcvarsall.bat
Does anybody have an idea how to solve this?
You're using a different Python distribution to the one the psycopg2 installer expects, so it cannot find the Python install location.
You can manually install psycopg2 from the binaries you downloaded by following the instructions on the psycopg2 download page for issues installing with Zope, which read:
It has been noted that the the installers for psycopg2 will not find
the zope installation of python, stop the installation, and not
installing psycopg2. A work around is to extract the files by renaming
the extension from *.exe to *.zip and using a zip extractor (such as
WinZip/PkZip/7z) to extract the psycopg2 folder and place it at
\lib\python. I do not use Zope, so I will not be able to
provide support or instructions on how to use it. Let me know if it
does not work, though.
The same will apply to the Python(x,y) distribution that you are using. Unzip the psycopg2 installer .exe using 7-zip, then copy the psycopg2 folder and 'psycopg2-2.5.2-py2.7.egg-info' file (so 'psycopg2' will apear on 'pip freeze') into your Python lib\site-packages directory. See installing Python modules.
You should then be able to import psycopg2.
Choose the appropriate version from this page:
http://www.stickpeople.com/projects/python/win-psycopg/
Right click and select copy link address
Back at home, use easy_install <<Paste URL Here>>
Freeze your new requirements: pip freeze > requirements.txt