solc-select icon indicating copy to clipboard operation
solc-select copied to clipboard

how to install solc-select ?

Open simin98 opened this issue 3 years ago • 4 comments

image pip install solc-select==0.2.0 pip install solc-select==0.2.1 Could not find a version that satisfies the requirement solc-select==0.2.1 (from versions: ) No matching distribution found for solc-select==0.2.1 image ang my python version is 2.7

when I try git clone https://github.com/crytic/solc-select.git ./solc-select/scripts/install.sh

it shows bash: ./solc-select/scripts/install.sh: No such file or directory

so how can I do ?

simin98 avatar Oct 22 '21 02:10 simin98

Hey @simin98! Thanks for reporting this. Do you have python3 installed? I think you might need Python 3.x for this, as Python 2 has been deprecated.

The install.sh file you're mentioning is part of an older release of solc-select that uses Docker. This has since been refactored in Python. Do you know where you saw these instructions?

You can try the following instead. (You can do this or the installation via pip):

git clone https://github.com/crytic/solc-select.git
cd solc-select
python3 setup.py install 

0xicingdeath avatar Oct 22 '21 19:10 0xicingdeath

Hey @simin98! Thanks for reporting this. Do you have python3 installed? I think you might need Python 3.x for this, as Python 2 has been deprecated.

The install.sh file you're mentioning is part of an older release of solc-select that uses Docker. This has since been refactored in Python. Do you know where you saw these instructions?

You can try the following instead. (You can do this or the installation via pip):

git clone https://github.com/crytic/solc-select.git
cd solc-select
python3 setup.py install 

I tried it but it do not work. I want to use oyente(the Smart Contract Detection Tool),and its default environment is python 2.7.when i switched python version (2.7to 3.6),i can not use pip3.

simin98 avatar Oct 27 '21 00:10 simin98

Hi @simin98! Python2 isn't officially supported anymore, which is why solc-select will not work on that setup. You may need to raise this issue in Oyente which is relying on an older version.

0xicingdeath avatar Dec 22 '21 18:12 0xicingdeath

@simin98 use Python 3.8 then git clone https://github.com/crytic/solc-select.git cd solc-select sudo python3 setup.py install

rahulEth avatar Nov 16 '22 09:11 rahulEth