synthpops
synthpops copied to clipboard
The error of installation
I tried to pack synthpops-1.8.0, but it showed the error here:
Hi @Laplace3210 , that's an interesting error, one I haven't seen before! Can you try the command it suggests just above, namely
pip install cython>=0.29.21,<1.0.0
and then repeat the installation with pip install -e .
instead of python setup.py develop
, and see if that fixes it? If so, we will add this to the installation instructions.
Thank you for your reply, but there are still some errors here:
Dear Prof Cliff C Kerr,
Thank you very much for your reply. There are still some errors for installation about the SynthPops which I sumbit it in the GitHub.
And I still have some questions about the python codes for the article"Estimating and mitigating the risk of COVID-19 epidemic rebound associated with reopening of international borders in Vietnam: a modelling study". I ran the python code file called " run_vietnam_central.py" , there are some errors as showed in the attachment. It showed that 'covasim' has no attribute 'trigger'.
Thank you again for your kindly reply.
Yours sincerely,
[ https://github.com/Laplace3210 | @Laplace3210 ]
From: "Cliff Kerr" @.> To: "InstituteforDiseaseModeling/synthpops" @.> Cc: "丁兆钧" @.>, "Mention" @.> Sent: 星期一, 2021年 7 月 05日 下午 11:05:31 Subject: Re: [InstituteforDiseaseModeling/synthpops] The error of installation (#65)
Hi [ https://github.com/Laplace3210 | @Laplace3210 ] , that's an interesting error, one I haven't seen before! Can you try the command it suggests just above, namely pip install cython>=0.29.21,<1.0.0
and then repeat the installation with pip install -e . instead of python setup.py develop , and see if that fixes it? If so, we will add this to the installation instructions.
— You are receiving this because you were mentioned. Reply to this email directly, [ https://github.com/InstituteforDiseaseModeling/synthpops/issues/65#issuecomment-874179423 | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/AMDVWBA6HCPNVB5WMQIEE5LTWHC3XANCNFSM47Z5V45A | unsubscribe ] .
Hi @Laplace3210 , sorry that didn't fix the error. It seems you may be missing C++ compiler on your computer. We will see if we can make the installation process simpler in future, but for now, could you try installing Visual Studio to include a C++ compiler? The instructions for doing that are here: https://docs.microsoft.com/en-us/cpp/build/vscpp-step-0-installation?view=msvc-160
For Vietnam, we have updated the installation instructions: https://github.com/optimamodel/covid_vietnam
Please try that and if you have any problems, you can email us at [email protected]. Thank you!