4 ms·
Install with pip install git+https://github.com/abey79/vsketch#egg=vsketch pip install git+https://github.com/marceloprates/prettymaps.git If prettyma
by TekMol 5y ago
Install with
pip install git+https://github.com/abey79/vsketch#egg=vsketch
pip install git+https://github.com/marceloprates/prettymaps.git
If prettymaps needs vsketch, why does it not put it into its setup.py?
- martinky24 5y agoFor some reason it was commented out, and the author didn't say why: https://github.com/marceloprates/prettymaps/commit/c8b1f3f135c7a4995c7ba8c5ebdca2fbae237c1a https://github.com/marceloprates/prettymaps/commit/c8b1f3f13...
- nightpool 5y agoProbably because it requires an unreleased HEAD version instead of something from PyPi?
- TekMol 5y agoIsn't setup.py a normal python script? Can't they put the same line they have in the description ... pip install git+https://github.com/abey79/vsketch#egg=vsketch ... into setup.py instead?
- marbu 5y agoYes, but it's not a good practice to specify full git url in setup.py, where I would expect to have sheer module name and version constraints if necessary. There is a convention about overriding requirements from setup.py via requirements.txt file, but here the author just decided to note it in a readme file instead to avoid the need to clone his repository manually.
- newman314 5y agoSo I don't do too much with Python but is it accepted practice now to use Pipfile or do most folks still use requirements.txt and/or setup.py?
- TekMol 5y agoLike for all languages there are a bunch of dependency managers. And everyone you ask will praise the one they use. In my opinion, setup.py is best approach. I don't want to be forced to use some specific dependency manager. I just want to run setup.py and expect it to take care of dependencies.
- TekMol 5y agothe author just decided to note it in a readme file instead to avoid the need to clone his repository manually Isn't it the other way round? Because the dependency is noted in the readme, one has to clone his repo manually? If it was in the setup.py, one could just run setup.py and everything would be set up.
- deleted 5y ago[deleted]
- myidealab 5y agoWere you able to run the 2nd cell in Google Colab? I get the following error: FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/numpy-1.19.5.dist-info/METADATA'
- sails 5y agoNeed to restart the runtime. Runtime > Restart Runtime
- myidealab 5y agoThanks for the suggestion. In addition to restarting the runtime, I installed numpy independently: !pip install 'numpy>=1.3.0,<2.0.0' --force-reinstall Now the maps work!
- TekMol 5y agoNo idea. As soon as I click on something in that Colab thing, it tells me to make a Google account.