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 fails #59

Open
elopezfune opened this issue Nov 7, 2022 · 5 comments
Open

Installation fails #59

elopezfune opened this issue Nov 7, 2022 · 5 comments

Comments

@elopezfune
Copy link

I am trying to install the library on my computer pip install pysurvival, however, I get the following error message

      /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> pysurvival

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.


I am running on Ubuntu 22.04.1 LTS, python version 3.10.06
@markoke
Copy link

markoke commented Nov 8, 2022

The only option is for you to download an archive version of anaconda with python 3.7 (2019 version). Then you should be able to install it on its venv

@elopezfune
Copy link
Author

I did and I still get the same error message

@mdsatria
Copy link

mdsatria commented Feb 8, 2023

I have the same error. Make sure you installed C++ compiler and assign environment variables as mentioned in this installation guide

Since the current GCC and G++ version is 11, this command should work
sudo apt install gcc g++
export CXX=/usr/bin/g++-11
export CC=/usr/bin/gcc-11

Or change the version of GCC and G++ when assigning the environment variable

@elopezfune
Copy link
Author

I am using Windows 11

@maximeheowkin
Copy link

current version is 12 no?
same here, can't install

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

4 participants