Skip to content Skip to sidebar Skip to footer

Creating Setup.py For Installing Api

https://github.com/SocksPls/hltv-api.git this one when i tried to install i get a this error Collecting git+https://github.com/SocksPls/hltv-api.git Cloning https://github.com/So

Solution 1:

The project you linked does not have a setup.py, so pip cannot actually install it. What you are looking for is most likely to do:

git clone https://github.com/SocksPls/hltv-api

Go into the new /hltv-api folder and do:

pip install -r requirements.txt

From there you will be able to use/modify/import the main.py inside this project. Note, however, that you will only be able to import the main.py file from inside the same directory. Create a tool.py within the same dir and use the module:

import main as hltv
hltv.top5teams()

Post a Comment for "Creating Setup.py For Installing Api"