How to verify a locally installed version of a module is the one used by pip?
up vote
1
down vote
favorite
I have manually installed datatable (from h2o.ai) https://github.com/h2oai/datatable from HEAD of master
make build
make install
They were successful. However when running pip3 freeze I see the (v old) default version (0.6.0) that had been installed via
pip3 install datatable
some months back:
$pip3 freeze | grep datatable
datatable==0.6.0
I am uncertain whether:
- the locally built version of datatable is not being used
- the locally built version of datatable is being used but not reported by
pip3- if that were the case: how to verify the locally built/installed version were being used (or not)
Tips appreciated.
Updates
Based on (great) comments below:
import datatable then print(datatable.__version__)
0.6.0
But the datatable.__file__ shows the local version:
In [3]: print(datatable.__file__)
/git/datatable/datatable/__init__.py
Does this possibly mean that the local installation is being used - but that the version reported by that locally built one is still the same (v old) one that was published to pip repositories months earlier?
python pip
|
show 4 more comments
up vote
1
down vote
favorite
I have manually installed datatable (from h2o.ai) https://github.com/h2oai/datatable from HEAD of master
make build
make install
They were successful. However when running pip3 freeze I see the (v old) default version (0.6.0) that had been installed via
pip3 install datatable
some months back:
$pip3 freeze | grep datatable
datatable==0.6.0
I am uncertain whether:
- the locally built version of datatable is not being used
- the locally built version of datatable is being used but not reported by
pip3- if that were the case: how to verify the locally built/installed version were being used (or not)
Tips appreciated.
Updates
Based on (great) comments below:
import datatable then print(datatable.__version__)
0.6.0
But the datatable.__file__ shows the local version:
In [3]: print(datatable.__file__)
/git/datatable/datatable/__init__.py
Does this possibly mean that the local installation is being used - but that the version reported by that locally built one is still the same (v old) one that was published to pip repositories months earlier?
python pip
1
why notimport datatablethenprint(datatable.__version__). Trydir(datatable)to make sure there's a version attribute in there.
– duhaime
Nov 10 at 20:13
use a virtualenv
– Corey Goldberg
Nov 10 at 20:13
I will try that .. but there is no general way to find a version (not all libraries export that identifier__version__).: I'd like to know the answer not just for this particular library
– javadba
Nov 10 at 20:14
Looking at Makefile this local build was installed withpip(python2.7) I guess that's why it is not visible for pip3. Try ifpip freezewill show correct version.
– Raoslaw Szamszur
Nov 10 at 20:15
2
Better, usedatatable.__file__- that will show the location of the imported file
– duhaime
Nov 10 at 20:17
|
show 4 more comments
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have manually installed datatable (from h2o.ai) https://github.com/h2oai/datatable from HEAD of master
make build
make install
They were successful. However when running pip3 freeze I see the (v old) default version (0.6.0) that had been installed via
pip3 install datatable
some months back:
$pip3 freeze | grep datatable
datatable==0.6.0
I am uncertain whether:
- the locally built version of datatable is not being used
- the locally built version of datatable is being used but not reported by
pip3- if that were the case: how to verify the locally built/installed version were being used (or not)
Tips appreciated.
Updates
Based on (great) comments below:
import datatable then print(datatable.__version__)
0.6.0
But the datatable.__file__ shows the local version:
In [3]: print(datatable.__file__)
/git/datatable/datatable/__init__.py
Does this possibly mean that the local installation is being used - but that the version reported by that locally built one is still the same (v old) one that was published to pip repositories months earlier?
python pip
I have manually installed datatable (from h2o.ai) https://github.com/h2oai/datatable from HEAD of master
make build
make install
They were successful. However when running pip3 freeze I see the (v old) default version (0.6.0) that had been installed via
pip3 install datatable
some months back:
$pip3 freeze | grep datatable
datatable==0.6.0
I am uncertain whether:
- the locally built version of datatable is not being used
- the locally built version of datatable is being used but not reported by
pip3- if that were the case: how to verify the locally built/installed version were being used (or not)
Tips appreciated.
Updates
Based on (great) comments below:
import datatable then print(datatable.__version__)
0.6.0
But the datatable.__file__ shows the local version:
In [3]: print(datatable.__file__)
/git/datatable/datatable/__init__.py
Does this possibly mean that the local installation is being used - but that the version reported by that locally built one is still the same (v old) one that was published to pip repositories months earlier?
python pip
python pip
edited Nov 10 at 20:22
asked Nov 10 at 20:06
javadba
21.1k31141276
21.1k31141276
1
why notimport datatablethenprint(datatable.__version__). Trydir(datatable)to make sure there's a version attribute in there.
– duhaime
Nov 10 at 20:13
use a virtualenv
– Corey Goldberg
Nov 10 at 20:13
I will try that .. but there is no general way to find a version (not all libraries export that identifier__version__).: I'd like to know the answer not just for this particular library
– javadba
Nov 10 at 20:14
Looking at Makefile this local build was installed withpip(python2.7) I guess that's why it is not visible for pip3. Try ifpip freezewill show correct version.
– Raoslaw Szamszur
Nov 10 at 20:15
2
Better, usedatatable.__file__- that will show the location of the imported file
– duhaime
Nov 10 at 20:17
|
show 4 more comments
1
why notimport datatablethenprint(datatable.__version__). Trydir(datatable)to make sure there's a version attribute in there.
– duhaime
Nov 10 at 20:13
use a virtualenv
– Corey Goldberg
Nov 10 at 20:13
I will try that .. but there is no general way to find a version (not all libraries export that identifier__version__).: I'd like to know the answer not just for this particular library
– javadba
Nov 10 at 20:14
Looking at Makefile this local build was installed withpip(python2.7) I guess that's why it is not visible for pip3. Try ifpip freezewill show correct version.
– Raoslaw Szamszur
Nov 10 at 20:15
2
Better, usedatatable.__file__- that will show the location of the imported file
– duhaime
Nov 10 at 20:17
1
1
why not
import datatable then print(datatable.__version__). Try dir(datatable) to make sure there's a version attribute in there.– duhaime
Nov 10 at 20:13
why not
import datatable then print(datatable.__version__). Try dir(datatable) to make sure there's a version attribute in there.– duhaime
Nov 10 at 20:13
use a virtualenv
– Corey Goldberg
Nov 10 at 20:13
use a virtualenv
– Corey Goldberg
Nov 10 at 20:13
I will try that .. but there is no general way to find a version (not all libraries export that identifier
__version__).: I'd like to know the answer not just for this particular library– javadba
Nov 10 at 20:14
I will try that .. but there is no general way to find a version (not all libraries export that identifier
__version__).: I'd like to know the answer not just for this particular library– javadba
Nov 10 at 20:14
Looking at Makefile this local build was installed with
pip (python2.7) I guess that's why it is not visible for pip3. Try if pip freeze will show correct version.– Raoslaw Szamszur
Nov 10 at 20:15
Looking at Makefile this local build was installed with
pip (python2.7) I guess that's why it is not visible for pip3. Try if pip freeze will show correct version.– Raoslaw Szamszur
Nov 10 at 20:15
2
2
Better, use
datatable.__file__ - that will show the location of the imported file– duhaime
Nov 10 at 20:17
Better, use
datatable.__file__ - that will show the location of the imported file– duhaime
Nov 10 at 20:17
|
show 4 more comments
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
To look precisely at the module being used, the best way, as mentioned by @duhaime is to use import datatable; print(datatable.__file__).
If your local installation was done correctly, then you should also make sure that 1) the location where you installed it is in your PYTHONPATH, 2) that if it is, the path is placed before that of the standard paths (lookup is sequential).
An easy way to check that it is in the path if you don't know where to look is just to uninstall the version installed through pip.
EDIT
Based on the edit to the question, yes, the version is still the same (see here)
I am going to update the version to0.6.5in my localgitclone
– javadba
Nov 10 at 20:27
$ipython -c "import datatable; print(datatable.__version__)" 0.6.5
– javadba
Nov 10 at 20:31
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
To look precisely at the module being used, the best way, as mentioned by @duhaime is to use import datatable; print(datatable.__file__).
If your local installation was done correctly, then you should also make sure that 1) the location where you installed it is in your PYTHONPATH, 2) that if it is, the path is placed before that of the standard paths (lookup is sequential).
An easy way to check that it is in the path if you don't know where to look is just to uninstall the version installed through pip.
EDIT
Based on the edit to the question, yes, the version is still the same (see here)
I am going to update the version to0.6.5in my localgitclone
– javadba
Nov 10 at 20:27
$ipython -c "import datatable; print(datatable.__version__)" 0.6.5
– javadba
Nov 10 at 20:31
add a comment |
up vote
1
down vote
accepted
To look precisely at the module being used, the best way, as mentioned by @duhaime is to use import datatable; print(datatable.__file__).
If your local installation was done correctly, then you should also make sure that 1) the location where you installed it is in your PYTHONPATH, 2) that if it is, the path is placed before that of the standard paths (lookup is sequential).
An easy way to check that it is in the path if you don't know where to look is just to uninstall the version installed through pip.
EDIT
Based on the edit to the question, yes, the version is still the same (see here)
I am going to update the version to0.6.5in my localgitclone
– javadba
Nov 10 at 20:27
$ipython -c "import datatable; print(datatable.__version__)" 0.6.5
– javadba
Nov 10 at 20:31
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
To look precisely at the module being used, the best way, as mentioned by @duhaime is to use import datatable; print(datatable.__file__).
If your local installation was done correctly, then you should also make sure that 1) the location where you installed it is in your PYTHONPATH, 2) that if it is, the path is placed before that of the standard paths (lookup is sequential).
An easy way to check that it is in the path if you don't know where to look is just to uninstall the version installed through pip.
EDIT
Based on the edit to the question, yes, the version is still the same (see here)
To look precisely at the module being used, the best way, as mentioned by @duhaime is to use import datatable; print(datatable.__file__).
If your local installation was done correctly, then you should also make sure that 1) the location where you installed it is in your PYTHONPATH, 2) that if it is, the path is placed before that of the standard paths (lookup is sequential).
An easy way to check that it is in the path if you don't know where to look is just to uninstall the version installed through pip.
EDIT
Based on the edit to the question, yes, the version is still the same (see here)
answered Nov 10 at 20:21
Silmathoron
7171619
7171619
I am going to update the version to0.6.5in my localgitclone
– javadba
Nov 10 at 20:27
$ipython -c "import datatable; print(datatable.__version__)" 0.6.5
– javadba
Nov 10 at 20:31
add a comment |
I am going to update the version to0.6.5in my localgitclone
– javadba
Nov 10 at 20:27
$ipython -c "import datatable; print(datatable.__version__)" 0.6.5
– javadba
Nov 10 at 20:31
I am going to update the version to
0.6.5 in my local git clone– javadba
Nov 10 at 20:27
I am going to update the version to
0.6.5 in my local git clone– javadba
Nov 10 at 20:27
$ipython -c "import datatable; print(datatable.__version__)" 0.6.5– javadba
Nov 10 at 20:31
$ipython -c "import datatable; print(datatable.__version__)" 0.6.5– javadba
Nov 10 at 20:31
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53242959%2fhow-to-verify-a-locally-installed-version-of-a-module-is-the-one-used-by-pip%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
why not
import datatablethenprint(datatable.__version__). Trydir(datatable)to make sure there's a version attribute in there.– duhaime
Nov 10 at 20:13
use a virtualenv
– Corey Goldberg
Nov 10 at 20:13
I will try that .. but there is no general way to find a version (not all libraries export that identifier
__version__).: I'd like to know the answer not just for this particular library– javadba
Nov 10 at 20:14
Looking at Makefile this local build was installed with
pip(python2.7) I guess that's why it is not visible for pip3. Try ifpip freezewill show correct version.– Raoslaw Szamszur
Nov 10 at 20:15
2
Better, use
datatable.__file__- that will show the location of the imported file– duhaime
Nov 10 at 20:17