# Error: I cannot install package Meshes

**URL:** <https://discourse.julialang.org/t/error-i-cannot-install-package-meshes/84051>\
**Category:** New to Julia\
**Tags:** package, error, installation, meshes\
**Created:** [July 11, 2022, 2:10pm UTC](https://discourse.julialang.org/t/error-i-cannot-install-package-meshes/84051 "2022-07-11T14:10:23Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![evandro.schulz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evandro.schulz/32/37761_2.png) [@evandro.schulz](https://discourse.julialang.org/u/evandro.schulz)\
**Post date:** [July 11, 2022, 2:10pm UTC](https://discourse.julialang.org/t/error-i-cannot-install-package-meshes/84051/1 "2022-07-11T14:10:23Z")

</div>

Hi, I’m a new user and I have had problems with scripts that use the command Point3f, Point2f and others to generate plots. Well, apparently, the problem is caused by errors in packages installation. I uninstalled the Julia, reinstall, and the problem continue.

So, I ran the update all packages after the Julia installation (Windows 10 64bits as admin). And I discoved the problem: the package **Meshes**.

Julia version: 1.7.3

```julia
julia> Pkg.update()
    Updating registry at `C:\Users\EvSchulz\.julia\registries\General.toml`
   Installed GR_jll ────────── v0.66.0+0
   Installed RecipesPipeline ─ v0.6.1
   Installed Plots ─────────── v1.31.2
   Installed GR ────────────── v0.66.0
  Downloaded artifact: GR
    Updating `C:\Users\EvSchulz\.julia\environments\v1.7\Project.toml`
  [91a5bcdd] ↑ Plots v1.31.1 ⇒ v1.31.2
    Updating `C:\Users\EvSchulz\.julia\environments\v1.7\Manifest.toml`
  [28b8d3ca] ↑ GR v0.64.4 ⇒ v0.66.0
  [91a5bcdd] ↑ Plots v1.31.1 ⇒ v1.31.2
  [01d81517] ↑ RecipesPipeline v0.5.2 ⇒ v0.6.1
  [05181044] ↑ RelocatableFolders v0.1.3 ⇒ v0.3.0
  [d2c73de3] ↑ GR_jll v0.65.1+0 ⇒ v0.66.0+0
    Building GR → `C:\Users\EvSchulz\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\037a1ca47e8a5989cc07d19729567bb71bfabd0c\build.log`
Precompiling project...
  5 dependencies successfully precompiled in 47 seconds (259 already precompiled)
  1 dependency errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the package

```

Well, 1 dependency error occurred with package “GR”. After, I ran Pkg.precompile(), to discover the error:

```julia
julia> Pkg.precompile()
  0 dependencies successfully precompiled in 2 seconds (264 already precompiled)

ERROR: The following 1 direct dependency failed to precompile:

Meshes [eacbb407-ea5a-433e-ab97-5258b1ca43fa]

Error: Missing source file for Meshes [eacbb407-ea5a-433e-ab97-5258b1ca43fa
Stacktrace:
 [1] pkgerror(msg::String)
   @ Pkg.Types C:\Users\EvSchulz\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\Pkg\src\Types.jl:68
 [2] precompile(ctx::Pkg.Types.Context; internal_call::Bool, strict::Bool, warn_loaded::Bool, already_instantiated::Bool, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ Pkg.API C:\Users\EvSchulz\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\Pkg\src\API.jl:1362
 [3] precompile
   @ C:\Users\EvSchulz\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\Pkg\src\API.jl:1013 [inlined]
 [4] #precompile#220
   @ C:\Users\EvSchulz\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\Pkg\src\API.jl:1011 [inlined]
 [5] precompile()
   @ Pkg.API C:\Users\EvSchulz\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\Pkg\src\API.jl:1011
 [6] top-level scope
   @ REPL[4]:1

```

Well, here is the problem: **Meshes [eacbb407-ea5a-433e-ab97-5258b1ca43fa]**

I’m tried to install the package:

```julia
Pkg.add("Meshes")
   Resolving package versions...
  No Changes to `C:\Users\EvSchulz\.julia\environments\v1.7\Project.toml`
  No Changes to `C:\Users\EvSchulz\.julia\environments\v1.7\Manifest.toml`
  0 dependencies successfully precompiled in 2 seconds (264 already precompiled)
  1 dependency errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the package

```

I do not know howI can do to solve it.

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [July 11, 2022, 2:31pm UTC](https://discourse.julialang.org/t/error-i-cannot-install-package-meshes/84051/2 "2022-07-11T14:31:25Z")

</div>

I just tried installing `Meshes` in a clean environment in Julia 1.7.3, Windows 10, and everything worked without issues. I then added Plots, and again everything just worked.

It looks like you’re dumping all of your projects into the default environment (don’t do this, it’s a bad idea), so you might just have some versioning conflict somewhere? Try installing things in a new environment to see if the issue persists.

---

<div class="post-metadata">

**Author:** ![evandro.schulz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evandro.schulz/32/37761_2.png) [@evandro.schulz](https://discourse.julialang.org/u/evandro.schulz)\
**Post date:** [July 11, 2022, 2:52pm UTC](https://discourse.julialang.org/t/error-i-cannot-install-package-meshes/84051/3 "2022-07-11T14:52:22Z")

</div>

Thanks nilshg. How I can installing in a new environment?

---

<div class="post-metadata">

**Author:** ![acxz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/acxz/32/16759_2.png) [@acxz](https://discourse.julialang.org/u/acxz)\
**Post date:** [July 11, 2022, 3:00pm UTC](https://discourse.julialang.org/t/error-i-cannot-install-package-meshes/84051/4 "2022-07-11T15:00:57Z")

</div>

This might help: [4. Working with Environments · Pkg.jl](https://pkgdocs.julialang.org/v1.2/environments/)

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [July 11, 2022, 5:03pm UTC](https://discourse.julialang.org/t/error-i-cannot-install-package-meshes/84051/5 "2022-07-11T17:03:54Z")

</div>

All above comments are missing this detail:

> [@evandro.schulz](#):
>
> `Error: Missing source file for Meshes [eacbb407-ea5a-433e-ab97-5258b1ca43fa`

It looks like the directory of the `Meshes` package is borked. I suggest deleting it (`C:\Users\EvSchulz\.julia\packages/Meshes`) and trying again

---

<div class="post-metadata">

**Author:** ![evandro.schulz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evandro.schulz/32/37761_2.png) [@evandro.schulz](https://discourse.julialang.org/u/evandro.schulz)\
**Post date:** [July 11, 2022, 6:12pm UTC](https://discourse.julialang.org/t/error-i-cannot-install-package-meshes/84051/6 "2022-07-11T18:12:40Z")

</div>

The problem not happen when I install the package in a new environment as @nilshg suggested. Thank you. But I it is stranger. @giordano the problem continue. I tried to install in the Linux, and the same problem occurred. Apparently, we need to work with ‘environments’ in Julia. But, does I need to install the packages all times that I create a new environment?

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [July 11, 2022, 6:20pm UTC](https://discourse.julialang.org/t/error-i-cannot-install-package-meshes/84051/7 "2022-07-11T18:20:24Z")

</div>

Working with environments is good anyway, but it’s orthogonal to the problem of having the source code of the package missing.

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [July 11, 2022, 7:19pm UTC](https://discourse.julialang.org/t/error-i-cannot-install-package-meshes/84051/8 "2022-07-11T19:19:00Z")

</div>

I always create a new environment for each new project.

```julia
mkdir new_project
cd new_project
julia --project="."
]add xxx

```

You don’t have to, but it makes it possible to use different versions of the same package per project. I often want to use old versions for old projects and new versions for new projects.

---

<div class="post-metadata">

**Author:** ![stillyslalom](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stillyslalom/32/45687_2.png) [@stillyslalom](https://discourse.julialang.org/u/stillyslalom)\
**Post date:** [July 11, 2022, 7:34pm UTC](https://discourse.julialang.org/t/error-i-cannot-install-package-meshes/84051/9 "2022-07-11T19:34:20Z")

</div>

Note that when you use multiple projects/environments with the same package versions, each unique version of a given package is only installed once in a central Julia-wide depot, so additional environments with the same packages don’t take up more hard drive space.
