-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Install within conda env breaks #199
Comments
@Borda any idea? |
I feel really strange about instaling package via |
I thought conda would be supported since it's listed as an alternative to virtualenv in the Listing packages yield:
So
works fine. Finally, If I download the package manually from pypi using |
i use conda with lightning. to install in conda I just use: pip install pytorch-lightning that’s it. |
oh, i think i see it. lightning only supports python 3.6+ (it’s in the readme) so, change your command from to |
Hmm, it's python 3.7, see the output of
|
|
can't replicate on this machine... maybe update your conda install? try installing other packages too?
|
I do not have much experience with macOS, I would conclude adding iOS to Travis testing... |
in my experience if it works in linux it works in osx (ds packages, conda, etc...) the above print out is from a mbp |
Thanks for your help, turns out it was a PYTHONPATH issue. I had set PYTHONPATH to |
I just had the same error in a kaggle kernel from importing lightning as a private dataset and running:
This is the python path input/output:
This is ran in an offline kernel, but the error shows pip trying to install setuptools even though it is installed. |
Found this snippet used in this notebook, useful? Edit: I tried running the snippet and it installs with the provided wheels |
I had a good time installing from git directly. Pretty hacky, but worked:
|
I install lightning in a conda environment by doing:
Why did that not work? |
Back then the issue for me was a wrong |
you may check Using Pip to install packages to Anaconda Environment |
Right now I'm converting the package to a wheel with no dependencies then installing in the kaggle kernel, seems to work fine. |
i use pip install pytorch-lightning on conda and colab without problems |
@hadim may you comment on the |
I install all the packages available in conda-forge via If Here is an example of conda env file you could use: # Usage: `conda env update -f environment.yml`
channels:
- conda-forge
- pytorch
dependencies:
- python==3.7.6
- pip==20.0.2
- tqdm>=4.35.0
- numpy>=1.16.4
- pytorch>=1.1
- tensorboard>=1.14
- future>=0.17.1
# For dev and testing
- torchvision>=0.4.0, < 0.5 # the 0.5. has some issues with torch JIT
- tox
- coverage
- codecov
- pytest>=3.0.5
- pytest-cov
- pytest-flake8
- flake8
- autopep8
- check-manifest
- twine==1.13.0
- pillow<7.0.0
- pip:
- test-tube>=0.7.5
- mlflow
- comet_ml
- wandb
- sacred
- neptune-client Then: conda create -n my_env
conda activate my_env
conda env update -f environment.yml
# To get the latest PL version (adapt to your needs)
python -m pip install https://github.com/PyTorchLightning/pytorch-lightning/archive/master.zip |
Great! side question @hadim would it make sense for you have lightning also on |
Since PL depends on pytorch, we can't push PL to conda forge because pytorch is available via a separate conda channel called |
I see, so let's keep it as it is... :] |
See #898 |
Describe the bug
Installation inside conda environment fails on Mac and Linux with the following message
Running
python -c 'import setuptools'
does not fail, sosetuptools
is installed. Also, installing directly from github is fine. I think it's due to thesite
directory inside the tarball from pypi breaking pythonTo Reproduce
Expected behavior
The package should be installed succesfully
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: