问题
Am trying to install utilities module for both python and anaconda environment.I have python 3 in my Mac.Here is the error I get.
pip install utilities
Could not find a version that satisfies the requirement utilities (from versions: ) No matching distribution found for utilities
Please help :(
回答1:
There is no module named utilities in Python,I believe you have encountered importing a file called utilities.py
by the line import utilities
. Showing the full source code might help. Additionally, check the gitgub repo of your source code for a file called utilities.py
and copy it to your execution folder. If you are talking about python-utils
, check this link.
Python Utilities contains many standard utility modules to solve common problems. They are :
File System -- os, os.path, shutil
Running External Processes -- commands
Exceptions
HTTP -- urllib and urlparse
Check This link
If this doesn't solve your issue, try installing the utilities-package using :
pip install utilities-package
回答2:
Please try the below:
pip install data-utilities
You can find more on the Python Package Index - data-utilities website.
回答3:
If you are trying the ML example from here, then please copy the utilities.py from chapter 2 in your python 3 in Lib directory and you will be able to use the utility module.
来源:https://stackoverflow.com/questions/44143332/issues-while-installing-utilities-module-in-python