I want to work with .xlsm files is azure ml sdk. For that I want to use win32com.client which I have successfully used in my local python sdk. But when I tried to install win32com in azure ml studio it says:
ERROR: Could not find a version that satisfies the requirement pywin32 (from versions: none)
ERROR: No matching distribution found for pywin32
Note: you may need to restart the kernel to use updated packages.
Would anyone be able to advise me how to sort this issue? Is there any alternate packgae I can use to execute macros in xlsm file?
Many Thanks
Sruthy
I think the version is new now and it can be installed via pip. Try this instead
pip install pypiwin32
Please check the link as well
(https://pypi.python.org/pypi/pypiwin32)
Related
I'm trying to run a project on google colab and I need to use PyWin32 (https://pypi.org/project/pywin32/), but I get the following error:
!pip install pywin32
ERROR: Could not find a version that satisfies the requirement pywin32 (from versions: none)
ERROR: No matching distribution found for pywin32
I think this application this Windows-only as I see in the part of 'Classifier' at https://pypi.org/project/pywin32/ only has Windows enviroment. And Colab's OS is Ubuntu. In addition, the list of packages for installation of pywin32 at https://pypi.org/simple/pywin32/ has no word related to Linux or Ubuntu. So may be you need to try another approach. Other's question same to yours: Error when installing pywin32 (on Ubuntu)
I have already defined a class which I want to use in my code.
in order to import it I know I have to install it first.(I am using google's colab)
to install first I uploaded the .py file into my drive which is mounted and no problem with that.
but still there is problem with installing the package.
how can I use this predefined class correctly in my code?
!pip install robotdef.py
Collecting robotdef.py
ERROR: Could not find a version that satisfies the requirement robotdef.py (from versions: none)
ERROR: No matching distribution found for robotdef.py
I think I overlooked one thing.
If "I uploaded the .py file into my drive which is mounted and no problem with that." is the situation, you don't have to run pip, but you'll need to expand the Python path to the directory where your package(class) is installed.
I hope this may help.
import sys
sys.path.append('/foo/bar/your-modules-path')
pip fetches a package from the Python Package Index (PyPI) repository. This means that the package must be registered on the repository first.
I tried to find 'robotdef.py' or 'robotdef' using a search form on the PyPI website, but it seems that 'robotdef.py' hasn't been registered yet...
If it's on the repository, !pip install <package name> will work fine on the Colab.
Supplement
Sorry, my answer was incomplete.
It's not necessary a package to be registered on the PyPI repository, but you can install a package from local archives, etc.
I have been trying to perform some advanced word document manipulation with python-docx, but I was advised to use Microsoft office API.
The problem is that I can't install win32api from pywin32 home page because I get the following error:
(IntellibookVenv) MacBook-Pro-de-Hugo:Intellibook hugovillalobos$ pip install pywin32
Collecting pywin32
Could not find a version that satisfies the requirement pywin32 (from versions: )
No matching distribution found for pywin32
I don't know wether I get the error because there is not win32api version for Mac, or wether I am doing something wrongly.
pywin32 is:
Python extensions for Microsoft Windows Provides access to much of the
Win32 API, the ability to create and use COM objects, and the
Pythonwin environment.
which essentially means an interface for Python to access the native Windows API. Obviously this means to use it on Windows exclusively (I tried, doesn't event work under cygwin, so don't even think about Mac)
When I deploy my developer's php code in heroku, it shows
could not find a version that satisfies the Requirement python3.5.2
How to resolve it?
Did you manually add python3.5.2 to the requirements.txt file?
This file should be generated only by the Python Package Index, e.g.
pip freeze > requirements.txt, and will list your Python dependencies, not the Python runtime version itself.
With Heroku you can specify a particular Python runtime in a text file called runtime.txt, e.g. python-3.6.4 - more information can be found in the Heroku documentation here.
Whilst you can use different runtimes, Heroku themselves only support the latest stable releases, which are (at the time of writing) 2.7.14 and 3.6.4.
I have a Python project that I want to get worked in Amazon aws Lambda. So i need to creat a deployment package. I tried it like explained on this page:
http://docs.aws.amazon.com/lambda/latest/dg/lambda-python-how-to-create-deployment-package.html
But here my problem:
Some Dependencies I can install, some are not installable.
If I want to install requests into a directory, It installs. If I want to install json into a directory I get the following error massage: Directory '/Users/iTom/Desktop/project-dir' is not installable. File 'setup.py' not found.
Dont know if this is important: I tried also to install json in general an got this error: Could not find a version that satisfies the requirement json (from versions: )
No matching distribution found for json
Thanks for help :)
EDIT: I got told json already included. What is with codecs and urllib?
json is a built-in package already shipped with python, you need not install it. Please see the python reference https://docs.python.org/2/library/json.html