Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Issue? Is it just me? #8

Closed
YoungAldehyde opened this issue May 1, 2021 · 1 comment
Closed

Installation Issue? Is it just me? #8

YoungAldehyde opened this issue May 1, 2021 · 1 comment

Comments

@YoungAldehyde
Copy link

Hey @OscarEngelbrektson,

First of all, thank you for making this package! I ran into your package while trying to implement synthetic control methods with the data I have. However, I'm having an installation error, and I was wondering if you know how to troubleshoot it.

I created a new virtual environment and pip install SyntheticControlMethods, I'm getting this error:

PS C:\Users\YC\Documents\staging\SyntheticControl> pip install SyntheticControlMethods
Collecting SyntheticControlMethods
  Using cached https://files.pythonhosted.org/packages/08/b5/553d6db75450bcf4b3062ad834339298abcdc1ad509e9878f9ef413a750d/Synth
eticControlMethods-1.1.16-py2.py3-none-any.whl
Collecting cvxpy==1.1.7 (from SyntheticControlMethods)
  Using cached https://files.pythonhosted.org/packages/66/f8/a0990f6d6df5872f9d2cc62dd102242e05f7204b2f1ddf2e504fefeb9e25/cvxpy
-1.1.7.tar.gz
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting jinja2>=2.10 (from SyntheticControlMethods)
  Using cached https://files.pythonhosted.org/packages/7e/c2/1eece8c95ddbc9b1aeb64f5783a9e07a286de42191b7204d67b7496ddf35/Jinja
2-2.11.3-py2.py3-none-any.whl
Collecting scipy==1.4.1 (from SyntheticControlMethods)
  Using cached https://files.pythonhosted.org/packages/17/e8/2aaf518a81bb0bdb0743a21cc7be3fae4101f763b3c8b097d62118d9267f/scipy
-1.4.1-cp37-cp37m-win32.whl
Collecting matplotlib>=2.2.3 (from SyntheticControlMethods)
  Downloading https://files.pythonhosted.org/packages/3b/70/9f4b21cf30e644149dc9fc07cc4807f2318439a5966eb90a9d650291acdf/matplo
tlib-3.4.1-cp37-cp37m-win32.whl (7.0MB)
    100% |████████████████████████████████| 7.0MB 7.9MB/s
Collecting pandas>=1.1.2 (from SyntheticControlMethods)
  Downloading https://files.pythonhosted.org/packages/86/32/fccb5c4d31b66585d84fb3a4831b5e9982b13a5b00c88c397b78ff89ec5f/pandas
-1.2.4-cp37-cp37m-win32.whl (8.1MB)
    100% |████████████████████████████████| 8.1MB 6.8MB/s
Collecting numpy>=1.17 (from SyntheticControlMethods)
  Using cached https://files.pythonhosted.org/packages/73/ef/f8768261693c32bfffdbf640b9461948639396c3014163523f19bc44ce64/numpy
-1.20.2-cp37-cp37m-win32.whl
Collecting scs>=1.1.6 (from cvxpy==1.1.7->SyntheticControlMethods)
  Downloading https://files.pythonhosted.org/packages/12/bd/1ab6a3b3f2791741e6e7c142f932ea1808277e92167e322dec43271b2225/scs-2.
1.3.tar.gz (147kB)
    100% |████████████████████████████████| 153kB 17.1MB/s
Collecting osqp>=0.4.1 (from cvxpy==1.1.7->SyntheticControlMethods)
  Using cached https://files.pythonhosted.org/packages/c0/90/4cf48c200a89e46bcad87e12469ee36fc03d0c3f16b703b747e8c4bf618e/osqp-
0.6.2.post0.tar.gz
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... error
  Complete output from command c:\users\yc\documents\staging\syntheticcontrol\project_env\scripts\python.exe c:\users\yc\docume
nts\staging\syntheticcontrol\project_env\lib\site-packages\pip install --ignore-installed --no-user --prefix C:\Users\YC\AppDat
a\Local\Temp\pip-build-env-7p91o_ip\normal --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.or
g/simple -- qdldl:
  Collecting qdldl
    Using cached https://files.pythonhosted.org/packages/ec/a3/db0e7c9fec5387dc33cbd2819329c141ba76497148aa9fab4bd1a7c2a279/qdl
dl-0.1.5.post0.tar.gz
  Collecting numpy>=1.7 (from qdldl)
    Using cached https://files.pythonhosted.org/packages/73/ef/f8768261693c32bfffdbf640b9461948639396c3014163523f19bc44ce64/num
py-1.20.2-cp37-cp37m-win32.whl
  Collecting scipy>=0.13.2 (from qdldl)
    Using cached https://files.pythonhosted.org/packages/c9/fb/f25bae744df18c0d9320f6271aa302d3671d4d52f0f06e6516618d37f980/sci
py-1.6.3-cp37-cp37m-win32.whl
  Installing collected packages: numpy, scipy, qdldl
    Running setup.py install for qdldl: started
      Running setup.py install for qdldl: finished with status 'error'
      Complete output from command c:\users\yc\documents\staging\syntheticcontrol\project_env\scripts\python.exe -u -c "import
setuptools, tokenize;__file__='C:\\Users\\YC\\AppData\\Local\\Temp\\pip-install-4rrtn1da\\qdldl\\setup.py';f=getattr(tokenize,
'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C
:\Users\YC\AppData\Local\Temp\pip-record-9lgy87c0\install-record.txt --single-version-externally-managed --prefix C:\Users\YC\A
ppData\Local\Temp\pip-build-env-7p91o_ip\normal --compile --install-headers c:\users\yc\documents\staging\syntheticcontrol\proj
ect_env\include\site\python3.7\qdldl:
      running install
      running build
      running build_ext
      -- Selecting Windows SDK version  to target Windows 10.0.19042.
      CMake Error at CMakeLists.txt:4 (project):
        Failed to run MSBuild command:

          MSBuild.exe

        to get the value of VCTargetsPath:

          The system cannot find the file specified



      -- Configuring incomplete, errors occurred!
      See also "C:/Users/YC/AppData/Local/Temp/pip-install-4rrtn1da/qdldl/c/build/CMakeFiles/CMakeOutput.log".
      The system cannot find the file specified
      CMake Error: Generator: execution of make failed. Make command was: MSBuild.exe qdldlamd.vcxproj /p:Configuration=Release
 /p:Platform=Win32 /p:VisualStudioVersion=14.0 /v:m &&
      building 'qdldl' extension
      error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.micros
oft.com/downloads/

      ----------------------------------------
  Command "c:\users\yc\documents\staging\syntheticcontrol\project_env\scripts\python.exe -u -c "import setuptools, tokenize;__f
ile__='C:\\Users\\YC\\AppData\\Local\\Temp\\pip-install-4rrtn1da\\qdldl\\setup.py';f=getattr(tokenize, 'open', open)(__file__);
code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\YC\AppData\Local
\Temp\pip-record-9lgy87c0\install-record.txt --single-version-externally-managed --prefix C:\Users\YC\AppData\Local\Temp\pip-bu
ild-env-7p91o_ip\normal --compile --install-headers c:\users\yc\documents\staging\syntheticcontrol\project_env\include\site\pyt
hon3.7\qdldl" failed with error code 1 in C:\Users\YC\AppData\Local\Temp\pip-install-4rrtn1da\qdldl\
  You are using pip version 19.0.3, however version 21.1.1 is available.
  You should consider upgrading via the 'python -m pip install --upgrade pip' command.

  ----------------------------------------
Command "c:\users\yc\documents\staging\syntheticcontrol\project_env\scripts\python.exe c:\users\yc\documents\staging\syntheticc
ontrol\project_env\lib\site-packages\pip install --ignore-installed --no-user --prefix C:\Users\YC\AppData\Local\Temp\pip-build
-env-7p91o_ip\normal --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- qdldl" fai
led with error code 1 in None
@YoungAldehyde
Copy link
Author

this was an issue with the python being 32 bit. After I switched to a 64 bit version, the installation issue resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant