Issues while installing utilities module in python

亡梦爱人 提交于 2020-06-18 10:37:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!