-
Notifications
You must be signed in to change notification settings - Fork 78
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 #140
Comments
I would recommend installing sumo within a conda environment. In general, I've found conda a much more reliable way of managing python packages. First I would install miniconda: https://docs.conda.io/en/latest/miniconda.html Then you can create a new conda environment using: conda create -n sumo python=3.8 pip This will create an environment called "sumo" and install python 3.8 and pip. The environment can "activated" (meaning you can access the installed packages) using: conda activate sumo And finally you can install sumo as normal using: pip install sumo |
Is |
Python 3.9 shouldn't be a problem. I think you were on the right lines with trying to set PATH. Unfortunately, I can't know which directory your Python/homebrew setup installed the command-line tools into. One option is to use Conda as Alex suggested, which will set up the environment variables correctly. But if you want to use the Homebrew Python and you already installed with |
|
This isn't necessarily where |
I found
|
This is the python library part; the command-line tools will always be in an another directory. You may need to get help from someone familiar with your Python setup. This problem is not specific to Sumo but is a general challenge people encounter when installing Python packages on Mac OSX. |
Just found these in Homebrew's Python documentation: "For brewed Python, modules installed with pip3 or python3 setup.py install will be installed to the Did you mean the location of Executable Python script? @ajjackson
I did not find any sumo executable. |
Have you checked ~/.local yet? |
This should be where it ends up if you install without |
This is site.USER_SITE on Python documentation It's strange cause the user
|
The problem is that there are lot of places that USER_SITE can be set. So even if one location is documented, another Python distribution might set its own. I don't have access to a "clean" Mac to find out exactly what the latest Homebrew does by default; on my system it will interact in some unique way with the multiple other Python installations. You still haven't confirmed if you checked in I still have no reason to believe the problem is related to Sumo; it seems that your scientific python environment is not configured correctly. Are you able to install other packages with executables via Pip, e.g. |
There is no I have
|
EDIT: Right, it was probably installed there with something like |
Actually I forgot how I installed it, LOL. |
I probably used Building using setup.py for |
After I uninstalled it with
|
Try to |
Wow that looks pretty broken. It tried to copy the whole package into /usr/local and that's a terrible idea which was prevented for good reasons. I'm really sorry but I can't do much more for you from here, I think you need to sit down with an experienced Mac/Python user who can figure out what is going on with your particular machine/environment. |
No, problem. I'll try |
Even if you do uninstall it, there will probably be some other useful Homebrew package that installs it again. I suggest making a habit to use |
Great, thanks again for your help. |
I'm trying to install
sumo
usingpip3 install --user sumo
withPython@3.9
However although the
sumo
package is already installed, it cannot be invoked bywhich sumo-optplot
In the
site-package
folder I can find all these packages, so it is definitely properly installed bypip3
My current
PATH
forPython3
andpip3
is:I searched a little bit for solutions on the internet, none of them solved this issue.
1.I changed the environment variables for in the
.bashrc
and.bash_profile
and sourced it2.I changed file permission and attributes for
site-packages
folder3.I tried uninstall and reinstall
Python@3.9
withHomebrew
alsobrew unlink Python@3.9
follow withbrew link Python@3.9
, still won't help.4.I tried uninstall and reinstall packages with
pip3 install --user
andPython3 -m pip install --user
, still nothing changes.Can anyone tell me the solution for this?
The text was updated successfully, but these errors were encountered: